function qtip_init in qTip (Stylish jQuery Tooltips) 7
Same name and namespace in other branches
- 6.2 qtip.module \qtip_init()
- 6 qtip.module \qtip_init()
- 7.2 qtip.module \qtip_init()
Implements hook_init().
File
- ./
qtip.module, line 80
Code
function qtip_init() {
// If the module has been configured to load the qTip library on every page, load the library
$load_lib_on_every_page = variable_get('qtip_load_lib_on_every_page', TRUE);
if ($load_lib_on_every_page) {
drupal_add_library('qtip', 'qtip');
}
// Only load the admin javascript when viewing the admin page
$current_path = implode('/', arg());
if ($current_path === "admin/config/user-interface/qtip") {
drupal_add_js(drupal_get_path('module', 'qtip') . '/js/qtip.admin.js');
}
}