function shoutbox_publish_form_submit in Shoutbox 7
Same name and namespace in other branches
- 5 shoutbox.module \shoutbox_publish_form_submit()
- 6.2 shoutbox.pages.inc \shoutbox_publish_form_submit()
- 6 shoutbox.module \shoutbox_publish_form_submit()
- 7.2 shoutbox.pages.inc \shoutbox_publish_form_submit()
Handle the publish form submission.
File
- ./
shoutbox.pages.inc, line 382 - 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);
}
}