You are here

function theme_nodejs_buddylist_chat_button in Node.js integration 7

Theme the start chat button.

1 theme call to theme_nodejs_buddylist_chat_button()
nodejs_buddylist_block_content in nodejs_buddylist/nodejs_buddylist.module
Get the content for the buddy list block.

File

nodejs_buddylist/nodejs_buddylist.module, line 122

Code

function theme_nodejs_buddylist_chat_button($variables) {
  $buddy = $variables['buddy'];
  $class = $variables['online'] ? 'chat-link-wrapper-online' : 'chat-link-wrapper-offline';
  return '<span class="chat-link-wrapper ' . $class . '"> | <a class="nodejs-buddylist-start-chat-link" href="#start-chat-' . $buddy->uid . '">' . t('Chat') . '</a></span>';
}