theme_chatroom_chat_banned_user

Definition

theme_chatroom_chat_banned_user($chat)
contributions/modules/chatroom/chatroom.module, line 1120

Description

Get HTML for ban message.

Related topics

Namesort iconDescription
Themeable functionsFunctions that display HTML, and which can be customized by themes.

Code

function theme_chatroom_chat_banned_user($chat) {
  $msg = $chat->banned_message ? $chat->banned_message : t('You have been banned from %chatroom.', array('%chatroom' => $chat->chatroom_name));
  return '<div id="chatroom-banned-msg">'. $msg .'</div>';
}