function shoutbox_unpublish_form in Shoutbox 5
Same name and namespace in other branches
- 6.2 shoutbox.pages.inc \shoutbox_unpublish_form()
- 6 shoutbox.module \shoutbox_unpublish_form()
- 7.2 shoutbox.pages.inc \shoutbox_unpublish_form()
- 7 shoutbox.pages.inc \shoutbox_unpublish_form()
Displays a "Are you sure message ?" with a Yes and Cancel option.
Parameters
shout_id: The shout id of the shout being unpublished.
1 string reference to 'shoutbox_unpublish_form'
- shoutbox_callback in ./
shoutbox.module - Function to handle shoutbox callbacks that require a shout_id. Does some sanity checking on on the id before forwarding to the actual callback.
File
- ./
shoutbox.module, line 661 - 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_unpublish_form($shout_id) {
$form['shout_id'] = array(
'#type' => 'value',
'#value' => $shout_id,
);
$form = confirm_form($form, t('Are you sure you want to unpublish this shout?'), '', t(''));
return $form;
}