function shoutbox_unpublish_form in Shoutbox 6.2
Same name and namespace in other branches
- 5 shoutbox.module \shoutbox_unpublish_form()
- 6 shoutbox.module \shoutbox_unpublish_form()
- 7.2 shoutbox.pages.inc \shoutbox_unpublish_form()
- 7 shoutbox.pages.inc \shoutbox_unpublish_form()
Shout unpublish confirmation form
Parameters
shout_id: The shout id of the shout being unpublished.
1 string reference to 'shoutbox_unpublish_form'
- shoutbox_menu in ./
shoutbox.module - Implementation of hook_menu().
File
- ./
shoutbox.pages.inc, line 268 - Page callbacks for the shoutbox module.
Code
function shoutbox_unpublish_form(&$form_state, $shout) {
theme('shoutbox_external_files');
_shoutbox_sanitize_shout($shout);
$form['shout_preview'] = array(
'#type' => 'item',
'#value' => theme('shoutbox_post', $shout),
);
$form['shout_id'] = array(
'#type' => 'value',
'#value' => $shout->shout_id,
);
$form = confirm_form($form, t('Are you sure you want to unpublish this shout?'), $_GET['destination']);
return $form;
}