function shoutbox_load in Shoutbox 6
Same name and namespace in other branches
- 6.2 shoutbox.module \shoutbox_load()
Implementation of hook_load().
File
- ./
shoutbox.module, line 93 - 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_load($shout_id) {
$shout = NULL;
if (is_numeric($shout_id)) {
$shout = db_fetch_object(db_query('SELECT * FROM {shoutbox} WHERE shout_id = ' . db_placeholders($shout_id), $shout_id));
if (!$shout) {
$shout = FALSE;
}
}
else {
$shout = drupal_not_found();
}
return $shout;
}