You are here

function ultimate_cron_service_enable in Ultimate Cron 7

Same name and namespace in other branches
  1. 8 ultimate_cron.admin.inc \ultimate_cron_service_enable()
  2. 6 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
Implements hook_menu().

File

./ultimate_cron.admin.inc, line 641

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();
}