Implements hook_js_alter().

Fichier

./advagg.module, line 1260

Code

function advagg_js_alter(&$js) {
    if (module_exists('admin_menu')) {
        // Fix for admin menu; put JS in footer.
        $path = drupal_get_path('module', 'admin_menu');
        $filename = $path . '/admin_menu.js';
        if (isset($js[$filename])) {
            $js[$filename]['scope'] = 'footer';
        }
    }
}