function theme_shoutbox_post_forbidden in Shoutbox 5
Same name and namespace in other branches
- 6.2 shoutbox.theme.inc \theme_shoutbox_post_forbidden()
- 6 shoutbox.module \theme_shoutbox_post_forbidden()
- 7.2 shoutbox.theme.inc \theme_shoutbox_post_forbidden()
- 7 shoutbox.theme.inc \theme_shoutbox_post_forbidden()
Theme function for displaying the access denied message.
Return value
String containing HTML formatted access denied message.
1 theme call to theme_shoutbox_post_forbidden()
- _shoutbox_block_view in ./
shoutbox.module - Returns the themed HTML to be displayed in the block.
File
- ./
shoutbox.module, line 377 - 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 theme_shoutbox_post_forbidden() {
global $user;
if ($user->uid) {
return '<div class="shoutbox-msg">' . t("Your account does not have the permissions to post shouts") . "</div>\n";
}
else {
return '<div class="shoutbox-msg">' . t('<a href="!login" target="_top">Login</a> or <a href="!register" target="_top">register</a> to post shouts', array(
'!login' => url('user/login'),
'!register' => url('user/register'),
)) . "</div>\n";
}
}