summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2012-12-08 16:49:25 -0500
committerDavid Rothstein <drothstein@gmail.com>2012-12-08 16:49:25 -0500
commitef10c14b7f0ddf5fb949083a34ddef5ebd2928f6 (patch)
treeeee14e60a1c9d27cda1ed566dca16e7d2762ad50 /modules/system
parent5b1308099b65246ff079ab8fbffca2fa0bb03053 (diff)
downloadbrdo-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.inc6
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',
);