function shoutbox_db_rewrite_sql in Shoutbox 6.2
Implementation of hook_db_rewrite_sql()
File
- ./
shoutbox.module, line 565 - 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_db_rewrite_sql($query, $table, $primary, $contexts) {
if ($table == 'shoutbox') {
// If there are no contexts, and general shouts should be restricted, do so
if (variable_get('shoutbox_restrict_general_shouts', 1) && empty($contexts)) {
return array(
'where' => "shoutbox.module = 'shoutbox'",
);
}
}
}