Parent Directory
|
Revision Log
|
Revision Graph
|
Patch
| revision 1.25.2.15, Tue Jul 15 08:11:17 2008 UTC | revision 1.25.2.16, Thu Jul 24 08:03:14 2008 UTC | |
|---|---|---|
| # | Line 1 | Line 1 |
| 1 | <?php | <?php |
| 2 | // $Id: shoutbox.module,v 1.25.2.14 2008/07/15 07:55:28 disterics Exp $ | // $Id: shoutbox.module,v 1.25.2.15 2008/07/15 08:11:17 disterics Exp $ |
| 3 | ||
| 4 | /** | /** |
| 5 | * @file | * @file |
| # | Line 716 function shoutbox_edit_form_submit($form | Line 716 function shoutbox_edit_form_submit($form |
| 716 | ||
| 717 | // If the user is a shoutbox admin they can edit any shout. | // If the user is a shoutbox admin they can edit any shout. |
| 718 | if (_shoutbox_user_access('administer shoutbox')) { | if (_shoutbox_user_access('administer shoutbox')) { |
| 719 | db_query("UPDATE {shoutbox} SET uid=%d, nick='%s', shout='%s', url='%s', status='%s', changed=%d WHERE shout_id=%d", $form_state['values']['uid'], $form_state['values']['nick'], $form_state['values']['shout'], $form_state['values']['url'], $form_state['values']['status'], time(), $form_state['values']['shout_id']); | db_query("UPDATE {shoutbox} SET uid=%d, nick='%s', shout='%s', url='%s', moderate=%d, changed=%d WHERE shout_id=%d", $form_state['values']['uid'], $form_state['values']['nick'], $form_state['values']['shout'], $form_state['values']['url'], $form_state['values']['moderate'], time(), $form_state['values']['shout_id']); |
| 720 | drupal_set_message(t('The shout has been saved.')); | drupal_set_message(t('The shout has been saved.')); |
| 721 | } | } |
| 722 |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |