drupal_js_defaults($data = NULL)
Constructs an array of the defaults that are used for JavaScript assets.
Parameters
$data: (optional) The default data parameter for the JavaScript asset array.
See also
File
- core/includes/common.inc, line 435
- Common functions that many Drupal modules will need to reference.
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | function drupal_js_defaults( $data = NULL) { return array ( 'type' => 'file' , 'group' => JS_DEFAULT, 'weight' => 0, 'scope' => 'header' , 'cache' => TRUE, 'preprocess' => TRUE, 'attributes' => array (), 'version' => NULL, 'data' => $data , 'browsers' => array (), ); } |
Please login to continue.