function _ultimate_cron_default_settings in Ultimate Cron 6
Same name and namespace in other branches
- 8 ultimate_cron.module \_ultimate_cron_default_settings()
- 7 ultimate_cron.module \_ultimate_cron_default_settings()
Smelly code; $default_rule determines if we should populate ...
2 calls to _ultimate_cron_default_settings()
- ultimate_cron_function_settings_form in ./
ultimate_cron.admin.inc - Function settings form.
- ultimate_cron_get_default_settings in ./
ultimate_cron.module - Get default settings for job.
File
- ./
ultimate_cron.module, line 1427 - @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_default_settings($default_rule = NULL) {
return array(
'enabled' => TRUE,
'rules' => $default_rule ? array(
$default_rule,
) : array(),
'catch_up' => $default_rule ? variable_get('ultimate_cron_catch_up', ULTIMATE_CRON_CATCH_UP) : '',
'queue_lease_time' => '',
'queue_polling_throttle' => '',
);
}