function browserclass_init in Browser Class 6
Implementation of hook_init().
File
- ./
browserclass.module, line 58
Code
function browserclass_init() {
if ((variable_get('browserclass_operation', BROWSERCLASS_OPERATION_WITHOUT_JS) == BROWSERCLASS_OPERATION_WITH_JS || variable_get('cache', CACHE_DISABLED) != CACHE_DISABLED) && ($browser_classes = browserclass_get_classes())) {
drupal_add_js(drupal_get_path('module', 'browserclass') . '/browserclass.js', 'module', 'footer');
}
}