drupal_js_defaults
- Versions
- 7
drupal_js_defaults($data = NULL)
Constructs an array of the defaults that are used for JavaScript items.
See also
@see drupal_add_js()
Parameters
$data (optional) The default data parameter for the JavaScript item array.
Code
includes/common.inc, line 3791
<?php
function drupal_js_defaults($data = NULL) {
return array(
'type' => 'file',
'weight' => JS_DEFAULT,
'scope' => 'header',
'cache' => TRUE,
'defer' => FALSE,
'preprocess' => TRUE,
'data' => $data,
);
}
?>Login or register to post comments 