function _hms_add_running_js in HMS Field 7
Add js for running HMS fields.
1 call to _hms_add_running_js()
- theme_hms in ./
hms_field.module - Theme HMS
File
- ./
hms_field.module, line 681 - Provides an hms_field functionality.
Code
function _hms_add_running_js() {
$hms_running_js_added =& drupal_static(__FUNCTION__);
if (!empty($hms_running_js_added)) {
return;
}
$hms_running_js_added = TRUE;
drupal_add_js(drupal_get_path('module', 'hms_field') . '/hms_field.js');
drupal_add_js(array(
'hms_field' => array(
'servertime' => REQUEST_TIME,
'factor_map' => _hms_factor_map(),
),
), 'setting');
}