function ultimate_cron_service_enable in Ultimate Cron 6
Same name and namespace in other branches
- 8 ultimate_cron.admin.inc \ultimate_cron_service_enable()
- 7 ultimate_cron.admin.inc \ultimate_cron_service_enable()
Enable/disable cron job
Parameters
type $function:
type $enabled:
1 string reference to 'ultimate_cron_service_enable'
- ultimate_cron_menu in ./
ultimate_cron.module - Implementation of hook_menu().
File
- ./
ultimate_cron.admin.inc, line 589
Code
function ultimate_cron_service_enable($function, $enabled) {
$conf = ultimate_cron_get_settings($function);
$conf['enabled'] = $enabled;
ultimate_cron_set_settings($function, $conf);
drupal_goto();
}