You are here

function shoutbox_publish_form_submit in Shoutbox 6

Same name and namespace in other branches
  1. 5 shoutbox.module \shoutbox_publish_form_submit()
  2. 6.2 shoutbox.pages.inc \shoutbox_publish_form_submit()
  3. 7.2 shoutbox.pages.inc \shoutbox_publish_form_submit()
  4. 7 shoutbox.pages.inc \shoutbox_publish_form_submit()

Handle the publish form submission.

File

./shoutbox.module, line 758
shoutbox module displays a block for users to create short messages for thw whole site. Uses AHAH to update the database and display content.

Code

function shoutbox_publish_form_submit($form, &$form_state) {
  if ($form_state['clicked_button']['#value'] == t('Confirm')) {
    $form_state['redirect'] = '';
    return _shoutbox_moderate_shout($form_state['values']['shout_id'], 0);
  }
}