You are here

function shoutbox_unpublish_form in Shoutbox 6

Same name and namespace in other branches
  1. 5 shoutbox.module \shoutbox_unpublish_form()
  2. 6.2 shoutbox.pages.inc \shoutbox_unpublish_form()
  3. 7.2 shoutbox.pages.inc \shoutbox_unpublish_form()
  4. 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.

2 string references to 'shoutbox_unpublish_form'
shoutbox_menu in ./shoutbox.module
Implementation of hook_menu().
theme_shoutbox_unpublish_form in ./shoutbox.pages.inc
Function to handle moderation of shouts.

File

./shoutbox.module, line 628
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(&$form_state, $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?'), '', t(''));
  return $form;
}