function bear_necessities_js_alter in Bear 7.2
Implements hook_js_alter().
The semantic UI module includes its library in the admin theme as well. There isn't a problem with the JS itself, but we just don't need to load it.
File
- modules/
bear_necessities/ bear_necessities.module, line 131
Code
function bear_necessities_js_alter(&$js) {
global $theme;
if ($theme == 'seven') {
unset($js[libraries_get_path('semantic_ui') . '/semantic.js']);
}
}