function elysia_cron_drush_invoke in Elysia Cron 7.2
Same name and namespace in other branches
- 6.2 elysia_cron.drush.inc \elysia_cron_drush_invoke()
Wrapper for drush_invoke().
1 call to elysia_cron_drush_invoke()
- elysia_cron_cron in ./
elysia_cron.module - Implements hook_cron().
File
- ./
elysia_cron.drush.inc, line 29 - Drush integration for Elysia cron module.
Code
function elysia_cron_drush_invoke() {
$args = drush_get_arguments();
array_shift($args);
// If drush command has no arguments or the first argument is not in the
// list of allowed operations then we assume the cron execution.
if (empty($args) || !in_array($args[0], array(
'list',
'run',
'enable',
'disable',
))) {
$args = array(
'run',
);
}
call_user_func_array('drush_elysia_cron_run_wrapper', $args);
elysia_cron_drush_die();
}