function mobile_codes_init in Mobile Codes 6.2
Same name and namespace in other branches
- 7.2 mobile_codes.module \mobile_codes_init()
Implements hook_init().
File
- ./
mobile_codes.module, line 19 - Mobile Codes core functions.
Code
function mobile_codes_init() {
// Determine if CTools is available after Mobile Codes 1.x to 2.x upgrade.
if (!module_exists('ctools')) {
module_enable(array(
'ctools',
));
if (!module_exists('ctools')) {
drupal_set_message(t('Mobile Codes has been disabled as the required !ctools module is not present.', array(
'!ctools' => l(t('Chaos tool suite'), 'http://drupal.org/project/ctools'),
)), 'error');
module_disable(array(
'mobile_codes',
));
}
}
}