function shoutbox_load in Shoutbox 6.2
Same name and namespace in other branches
- 6 shoutbox.module \shoutbox_load()
Load a shout by shout id
Parameters
shout_id: The shout ID
Return value
The shout object, or FALSE is none
4 calls to shoutbox_load()
- shoutbox_delete_form_submit in ./
shoutbox.pages.inc - Handle the delete form submission.
- shoutbox_edit_form_submit in ./
shoutbox.pages.inc - Handle the edit form submission
- shoutbox_group_get_group in shoutbox_group/
shoutbox_group.module - Determined by og_get_group_context for the block, or URL arg's for the page
- shoutbox_moderate_shout in ./
shoutbox.module - Alter the moderation status of a shout
File
- ./
shoutbox.module, line 85 - Shout box module displays a block for users to create short messages for the whole site. Uses AHAH to update the database and display content.
Code
function shoutbox_load($shout_id) {
if (is_numeric($shout_id)) {
$shout = db_fetch_object(db_query("SELECT * FROM {shoutbox} WHERE shout_id = %d", $shout_id));
}
return $shout ? $shout : FALSE;
}