diff options
author | David Rothstein <drothstein@gmail.com> | 2012-12-08 16:49:25 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-12-08 16:49:25 -0500 |
commit | ef10c14b7f0ddf5fb949083a34ddef5ebd2928f6 (patch) | |
tree | eee14e60a1c9d27cda1ed566dca16e7d2762ad50 /modules/system | |
parent | 5b1308099b65246ff079ab8fbffca2fa0bb03053 (diff) | |
download | brdo-ef10c14b7f0ddf5fb949083a34ddef5ebd2928f6.tar.gz brdo-ef10c14b7f0ddf5fb949083a34ddef5ebd2928f6.tar.bz2 |
Issue #1117780 by amontero, naxoc | ogi: Display cron url in admin/config/system/cron page.
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.admin.inc | 6 |
1 files changed, 6 insertions, 0 deletions
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' => '<p>' . t('Cron takes care of running periodic tasks like checking for updates and indexing content for search.') . '</p>', ); @@ -1606,6 +1607,11 @@ function system_cron_settings() { $form['status'] = array( '#markup' => $status, ); + + $form['cron_url'] = array( + '#markup' => '<p>' . t('To run cron from outside the site, go to <a href="!cron">!cron</a>', array('!cron' => url($base_url . '/cron.php', array('external' => TRUE, 'query' => array('cron_key' => variable_get('cron_key', 'drupal')))))) . '</p>', + ); + $form['cron'] = array( '#type' => 'fieldset', ); |