function jqmulti_preprocess_page in jQuery Multi 6
Implements hook_preprocess_page().
Rearrange the scripts and add the new jQuery (only runs if jQuery Update is not present).
1 string reference to 'jqmulti_preprocess_page'
- jqmulti_theme_registry_alter in ./
jqmulti.module - Implements hook_theme_registry_alter().
File
- ./
jqmulti.module, line 62 - Code for the jQuery Multi module.
Code
function jqmulti_preprocess_page(&$variables) {
// Only do this for pages that have JavaScript on them.
if (!empty($variables['scripts'])) {
$scripts = drupal_add_js();
$scripts = jqmulti_alter_scripts($scripts);
$variables['scripts'] = drupal_get_js('header', $scripts);
}
}