function elysia_cron_execute_page in Elysia Cron 7.2
Same name and namespace in other branches
- 5.2 elysia_cron.admin.inc \elysia_cron_execute_page()
- 5 elysia_cron.admin.inc \elysia_cron_execute_page()
- 6.2 elysia_cron.admin.inc \elysia_cron_execute_page()
- 6 elysia_cron.admin.inc \elysia_cron_execute_page()
- 7 elysia_cron.admin.inc \elysia_cron_execute_page()
Page callback for 'admin/config/system/cron/execute/%' path.
Parameters
string $job: Name of cron job to be executed.
1 string reference to 'elysia_cron_execute_page'
- elysia_cron_menu in ./
elysia_cron.module - Implements hook_menu().
File
- ./
elysia_cron.admin.inc, line 867 - Admin page callbacks for the elysia cron module.
Code
function elysia_cron_execute_page($job = '') {
if (!$job) {
elysia_cron_error('No job specified');
drupal_goto('admin/config/system/cron');
}
// Run also if disabled or not ready (but not if it's already running).
elysia_cron_run_job($job, TRUE, TRUE, FALSE);
drupal_goto('admin/config/system/cron');
}