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.
I think this script should be placed in the header. When testing the module on IE8, scripts stopped due to other errors caused by the old browser, so the message didn't show.
I then moved the script into the header and gave it a light weight and it worked.
drupal_add_js(drupal_get_path('module', 'bu') . '/bu.js', array('type' => 'file', 'scope' => 'header', 'every_page' => TRUE, 'weight' => -50,)); //Line 53
Comment | File | Size | Author |
---|---|---|---|
#2 | run_script_earlier-2373793-2.patch | 380 bytes | Daniel.Moberly |
#1 | run_script_earlier-2373793-1.patch | 0 bytes | Daniel.Moberly |
Comments
Comment #1
Daniel.Moberly CreditAttribution: Daniel.Moberly commentedAgreed. Attaching patch.
Comment #2
Daniel.Moberly CreditAttribution: Daniel.Moberly commentedSomething went wrong rolling patch. Reattaching.
Comment #4
Daniel.Moberly CreditAttribution: Daniel.Moberly commented