1 common.inc | backdrop_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.
Return value
array: The array of defaults for added JavaScript items.
See also
File
- core/
includes/ common.inc, line 4794 - Common functions that many Backdrop modules will need to reference.
Code
function backdrop_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,
'attributes' => array(),
'browsers' => array(),
);
}