You are here

function fbconnect_login_block_view in Facebook Connect 8.2

Same name and namespace in other branches
  1. 7.2 fbconnect_login/fbconnect_login.module \fbconnect_login_block_view()

Implements hook_block_view().

File

fbconnect_login/fbconnect_login.module, line 82
Login functionality for Facebook Connect module

Code

function fbconnect_login_block_view($delta = '') {
  global $user;
  $block = array();
  switch ($delta) {
    case 'fbconnect_login':
      if ($user->uid) {
        return;
      }
      $block['subject'] = t('Facebook Login');
      $block['content'] = fbconnect_render_button();
      break;
  }
  return $block;
}