Issue #1117780 by amontero, naxoc | ogi: Display cron url in admin/config/system/cron page.
parent
5b1308099b
commit
ef10c14b7f
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue