shoutbox.pages.inc in Shoutbox 6
Same filename and directory in other branches
Page callbacks for the shoutbox module.
File
shoutbox.pages.incView source
<?php
/**
* @file
* Page callbacks for the shoutbox module.
*/
/**
* Shout Deletion callbacks
*/
/**
* Function to handle deleting of shouts.
*
* @param shout_id
* The shout id to be deleted.
* @return
* HTML asking the user to confirm.
*/
function theme_shoutbox_delete_form($shout) {
_shoutbox_sanitize_shout($shout);
$output = '';
$output .= theme('shoutbox_post', $shout);
$output .= drupal_get_form('shoutbox_delete_form', $shout);
return $output;
}
/**
* Display a confirmation page for publsihing
* a moderated shout.
*
* @param shout_id
* The id of the shoutto be published.
*
* @return
* HTML asking the user to confirm.
*/
function theme_shoutbox_publish_form($shout) {
_shoutbox_sanitize_shout($shout);
$output = '';
$output .= theme('shoutbox_post', $shout);
$output .= drupal_get_form('shoutbox_publish_form', $shout);
return $output;
}
/**
* Function to handle moderation of shouts.
*
* @param shout_id
* The shout id to be unpublished.
* @return
* HTML asking the user to confirm.
*/
function theme_shoutbox_unpublish_form($shout) {
_shoutbox_sanitize_shout($shout);
$output = '';
$output .= theme('shoutbox_post', $shout);
$output .= drupal_get_form('shoutbox_unpublish_form', $shout);
return $output;
}
Functions
Name | Description |
---|---|
theme_shoutbox_delete_form | Function to handle deleting of shouts. |
theme_shoutbox_publish_form | Display a confirmation page for publsihing a moderated shout. |
theme_shoutbox_unpublish_form | Function to handle moderation of shouts. |