You are here

function twitter_signin_block_view in Twitter 7.4

Same name and namespace in other branches
  1. 7.6 twitter_signin/twitter_signin.module \twitter_signin_block_view()
  2. 7.3 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 42
Hook implementations for Twitter Signin module.

Code

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