function shoutbox_unpublish_form_submit in Shoutbox 6.2
Same name and namespace in other branches
- 5 shoutbox.module \shoutbox_unpublish_form_submit()
- 6 shoutbox.module \shoutbox_unpublish_form_submit()
- 7.2 shoutbox.pages.inc \shoutbox_unpublish_form_submit()
- 7 shoutbox.pages.inc \shoutbox_unpublish_form_submit()
Handle the unpublish form submission
File
- ./
shoutbox.pages.inc, line 288 - Page callbacks for the shoutbox module.
Code
function shoutbox_unpublish_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'], TRUE);
}
}