Parent Directory
|
Revision Log
|
Revision Graph
|
Patch
| revision 1.4, Sun May 3 22:15:15 2009 UTC | revision 1.5, Wed May 13 17:07:05 2009 UTC | |
|---|---|---|
| # | Line 1 | Line 1 |
| 1 | <?php | <?php |
| 2 | // $Id: cron.module,v 1.3 2009/04/28 21:19:40 denraf Exp $ | // $Id: cron.module,v 1.4 2009/05/03 22:15:15 denraf Exp $ |
| 3 | ||
| 4 | /** | /** |
| 5 | * @file | * @file |
| # | Line 173 function cron_add_form_validate($form, & | Line 173 function cron_add_form_validate($form, & |
| 173 | } | } |
| 174 | ||
| 175 | function cron_add_form_submit($form, $form_state) { | function cron_add_form_submit($form, $form_state) { |
| 176 | db_query("INSERT INTO {cron} (url, cron_key, description, checks, last_check) VALUES ('%s', '%s', 1, '%d')", $form_state['values']['url'], $form_state['values']['cron_key'], $form_state['values']['description'], time()); | db_query("INSERT INTO {cron} (url, cron_key, description, checks, last_check) VALUES ('%s', '%s', '%s', 1, '%d')", $form_state['values']['url'], $form_state['values']['cron_key'], $form_state['values']['description'], time()); |
| 177 | drupal_goto('admin/settings/tools/cron'); | drupal_goto('admin/settings/tools/cron'); |
| 178 | } | } |
| 179 |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |