You are here

function shoutbox_publish_form in Shoutbox 7.2

Same name and namespace in other branches
  1. 5 shoutbox.module \shoutbox_publish_form()
  2. 6.2 shoutbox.pages.inc \shoutbox_publish_form()
  3. 6 shoutbox.module \shoutbox_publish_form()
  4. 7 shoutbox.pages.inc \shoutbox_publish_form()

Shout publish confirmation form.

Parameters

shout_id: The shout id of the shout being published.

1 string reference to 'shoutbox_publish_form'
shoutbox_menu in ./shoutbox.module
Implements hook_menu().

File

./shoutbox.pages.inc, line 342
Page callbacks for the shoutbox module.

Code

function shoutbox_publish_form($form, &$form_state, $shout) {
  theme('shoutbox_external_files');
  _shoutbox_sanitize_shout($shout);
  $form['shout_preview'] = array(
    '#type' => 'item',
    '#value' => theme('shoutbox_post', array(
      'shout' => $shout,
    )),
  );
  $form['shout_id'] = array(
    '#type' => 'value',
    '#value' => $shout->shout_id,
  );
  $path = array_key_exists('destination', $_GET) ? $_GET['destination'] : '';
  $form = confirm_form($form, t('Are you sure you want to publish this ' . DEFAULTSHOUTSINGULAR . '?'), $path);
  return $form;
}