You are here

function twitter_signin_block_view in Twitter 7.3

Same name and namespace in other branches
  1. 7.6 twitter_signin/twitter_signin.module \twitter_signin_block_view()
  2. 7.4 twitter_signin/twitter_signin.module \twitter_signin_block_view()
  3. 7.5 twitter_signin/twitter_signin.module \twitter_signin_block_view()

Implements hook_block_view().

File

twitter_signin/twitter_signin.module, line 38

Code

function twitter_signin_block_view($delta) {
  global $user;
  if (!$user->uid && _twitter_use_oauth()) {
    $block['subject'] = t('Sign in with Twitter');
    $block['content'] = twitter_signin_button();
    return $block;
  }
}