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
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.