From ef10c14b7f0ddf5fb949083a34ddef5ebd2928f6 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Sat, 8 Dec 2012 16:49:25 -0500 Subject: Issue #1117780 by amontero, naxoc | ogi: Display cron url in admin/config/system/cron page. --- modules/system/system.admin.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/system/system.admin.inc') diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 061898c85..05543be6a 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1594,6 +1594,7 @@ function system_site_information_settings_validate($form, &$form_state) { * @ingroup forms */ function system_cron_settings() { + global $base_url; $form['description'] = array( '#markup' => '

' . t('Cron takes care of running periodic tasks like checking for updates and indexing content for search.') . '

', ); @@ -1606,6 +1607,11 @@ function system_cron_settings() { $form['status'] = array( '#markup' => $status, ); + + $form['cron_url'] = array( + '#markup' => '

' . t('To run cron from outside the site, go to !cron', array('!cron' => url($base_url . '/cron.php', array('external' => TRUE, 'query' => array('cron_key' => variable_get('cron_key', 'drupal')))))) . '

', + ); + $form['cron'] = array( '#type' => 'fieldset', ); -- cgit v1.2.3