/[drupal]/contributions/modules/poormanscron/poormanscron.admin.inc
ViewVC logotype

Contents of /contributions/modules/poormanscron/poormanscron.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Tue Sep 29 22:28:04 2009 UTC (7 weeks, 6 days ago) by davereid
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--2
Changes since 1.1: +1 -7 lines
File MIME type: text/x-php
by Dave Reid: Merging DRUPAL-6--1 branch into HEAD in preparation for the new DRUPAL-6--2 branch.
1 <?php
2 // $Id: poormanscron.admin.inc,v 1.1.2.1 2008/04/27 09:40:29 robloach Exp $
3
4 /**
5 * @file
6 * Provides the administration page for Poormanscron.
7 */
8
9 /**
10 * Administration page for Poormanscron.
11 */
12 function poormanscron_admin_settings() {
13 $form['time_intervals'] = array('#type' => 'fieldset', '#title' => t('Time intervals'));
14 $form['time_intervals']['poormanscron_interval'] = array(
15 '#type' => 'textfield', '#title' => t('Cron runs interval'),
16 '#default_value' => variable_get('poormanscron_interval', 60),
17 '#size' => 5, '#maxlength' => 10,
18 '#description' => t('Minimum number of minutes between cron runs. Cron will actually execute during the first page request after the interval has elapsed.')
19 );
20 $form['time_intervals']['poormanscron_retry_interval'] = array(
21 '#type' => 'textfield', '#title' => t('Retry interval'),
22 '#default_value' => variable_get('poormanscron_retry_interval', 10),
23 '#size' => 5, '#maxlength' => 10,
24 '#description' => t('The number of minutes to wait after a cron run error before retrying.')
25 );
26
27 $form['logging'] = array('#type' => 'fieldset', '#title' => t('Logging'));
28 $form['logging']['poormanscron_log_cron_runs'] = array(
29 '#type' => 'select', '#title' => t('Log successful cron runs'),
30 '#default_value' => variable_get('poormanscron_log_cron_runs', 1),
31 '#options' => array('1' => t('Yes'), '0' => t('No')),
32 '#description' => t('If you want to log successful cron runs to the Drupal watchdog, say Yes here. If those messages annoy you, disable them by selecting No.')
33 );
34 return system_settings_form($form);
35 }

  ViewVC Help
Powered by ViewVC 1.1.2