Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using a function like this
function phptemplate_preprocess_page(&$vars) {
$scripts = drupal_add_js();
unset($scripts['module']['sites/default/files/js/jquery-min.js']);
unset($scripts['module']['js_file.js']);
$vars['scripts'] = drupal_get_js('header', $scripts);
}
to remove js files won't work when this module is enabled.
Comments
Comment #1
karljohann CreditAttribution: karljohann commentedThis seems to be "fixed" in the dev version, the jquery update does however not work then...Comment #2
karljohann CreditAttribution: karljohann commentedComment #3
hansyg CreditAttribution: hansyg commentedI would love to see this fixed
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedRunning into this as well. Is it safe to say that this module is abandoned? No releases since 2010 is a pretty long time to keep this bug going.
Comment #5
kenorb CreditAttribution: kenorb commented#965680: jquery_update_preprocess_page() overwrite $variables['scripts']
#426764: Allow other modules to alter the replacements
Comment #6
marinex CreditAttribution: marinex commentedHi you must implement hook_theme_registry_alter here is nice guide remove-or-replace-jscss-page