From ef10c14b7f0ddf5fb949083a34ddef5ebd2928f6 Mon Sep 17 00:00:00 2001 From: David Rothstein <drothstein@gmail.com> Date: Sat, 8 Dec 2012 16:49:25 -0500 Subject: [PATCH] Issue #1117780 by amontero, naxoc | ogi: Display cron url in admin/config/system/cron page. --- CHANGELOG.txt | 2 ++ modules/system/system.admin.inc | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index e603b02585af..d4ffec79e4a5 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,8 @@ Drupal 7.18, xxxx-xx-xx (development version) ----------------------- +- Added link to the URL for running cron from outside the site to the Cron + settings page (UI change). - Fixed bug which prevented image styles from being reverted on PHP 5.4. - Made the default .htaccess rules protocol sensitive to improve security for sites which use HTTPS and redirect between "www" and non-"www" versions of diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 061898c8557d..05543be6a5fb 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', ); -- GitLab