| 7 common.inc | drupal_js_defaults($data = NULL) |
| 8 common.inc | drupal_js_defaults($data = NULL) |
Constructs an array of the defaults that are used for JavaScript items.
Parameters
$data: (optional) The default data parameter for the JavaScript item array.
See also
3 calls to drupal_js_defaults()
File
- includes/
common.inc, line 4101 - Common functions that many Drupal modules will need to reference.
Code
function drupal_js_defaults($data = NULL) {
return array(
'type' => 'file',
'group' => JS_DEFAULT,
'every_page' => FALSE,
'weight' => 0,
'scope' => 'header',
'cache' => TRUE,
'defer' => FALSE,
'preprocess' => TRUE,
'version' => NULL,
'data' => $data,
);
}
Login or register to post comments