function panels_init in Panels 6.3
Same name and namespace in other branches
- 6.2 panels.module \panels_init()
- 7.3 panels.module \panels_init()
Implementation of hook_init()
File
- ./
panels.module, line 243 - panels.module
Code
function panels_init() {
// Safety: go away if CTools is not at an appropriate version.
if (!module_invoke('ctools', 'api_version', PANELS_REQUIRED_CTOOLS_API)) {
if (user_access('administer site configuration')) {
drupal_set_message(t('Panels is enabled but CTools is out of date. All Panels modules are disabled until CTools is updated. See the status page for more information.'), 'error');
}
return;
}
ctools_add_css('panels', 'panels');
ctools_add_js('panels', 'panels');
}