You are here

function nodejs_buddylist_block_view in Node.js integration 7

Implementation of hook_block_view().

File

nodejs_buddylist/nodejs_buddylist.module, line 71

Code

function nodejs_buddylist_block_view($delta = '') {
  global $user;
  $block = array();
  switch ($delta) {
    case 'nodejs_buddylist_buddylist':
      $block['subject'] = t('Your Buddylist');
      $block['content'] = nodejs_buddylist_block_content($user);
      break;
    default:
      break;
  }
  return $block;
}