You are here

function shoutbox_publish_form_submit in Shoutbox 7.2

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. 6 shoutbox.module \shoutbox_publish_form_submit()
  4. 7 shoutbox.pages.inc \shoutbox_publish_form_submit()

Handle the publish form submission.

File

./shoutbox.pages.inc, line 362
Page callbacks for the shoutbox module.

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'], FALSE);
  }
}