function ultimate_cron_set_settings in Ultimate Cron 7
Same name and namespace in other branches
- 8 ultimate_cron.module \ultimate_cron_set_settings()
- 6 ultimate_cron.module \ultimate_cron_set_settings()
Set settings for a function.
Parameters
$name: Function to set settings for.
$settings: Settings data
Return value
boolean TRUE on success, FALSE on failure.
4 calls to ultimate_cron_set_settings()
- drush_ultimate_cron_cron_disable in ./
ultimate_cron.drush.inc - Disable a cron job
- drush_ultimate_cron_cron_enable in ./
ultimate_cron.drush.inc - Enable a cron job
- ultimate_cron_function_settings_form_submit in ./
ultimate_cron.admin.inc - Submit handler for function settings.
- ultimate_cron_service_enable in ./
ultimate_cron.admin.inc - Enable/disable cron job
File
- ./
ultimate_cron.module, line 1156 - @todo Add filter on overview page. @todo Add log view (with graph). @todo Make proper markup for overview page. @todo Refactor drush stuff, too many intimate relations with Background Process @todo Refactor Cron % offset stuff. Too mixed up and…
Code
function ultimate_cron_set_settings($name, $settings) {
if (module_exists('ctools')) {
ctools_include('export');
$function = ctools_export_crud_new('ultimate_cron');
$function->name = $name;
$function->settings = $settings;
return ctools_export_crud_save('ultimate_cron', $function);
}
else {
$function = new stdClass();
$function->name = $name;
$function->settings = $settings;
return ultimate_cron_crud_save($function);
}
}