function ultimate_cron_validate_rule in Ultimate Cron 7
Same name and namespace in other branches
- 8 ultimate_cron.module \ultimate_cron_validate_rule()
- 6 ultimate_cron.module \ultimate_cron_validate_rule()
- 7.2 ultimate_cron.module \ultimate_cron_validate_rule()
Check if rule is valid.
Parameters
$rule: rule to validate.
Return value
TRUE if valid, FALSE if not.
1 call to ultimate_cron_validate_rule()
- ultimate_cron_function_settings_form_validate in ./
ultimate_cron.admin.inc - Validate handler for function settings.
File
- ./
ultimate_cron.module, line 1227 - @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_validate_rule($rule) {
require_once 'CronRule.class.php';
$cron = new CronRule($rule);
if (!$cron
->isValid()) {
return FALSE;
}
else {
return TRUE;
}
}