You are here

function twitter_signin_block in Twitter 6.4

Same name and namespace in other branches
  1. 6.5 twitter_signin/twitter_signin.module \twitter_signin_block()
  2. 6.3 twitter_signin/twitter_signin.module \twitter_signin_block()

Implementation of hook_block().

File

twitter_signin/twitter_signin.module, line 38
Hook implementations for twitter_signin module.

Code

function twitter_signin_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $block[0]['info'] = t('Sign in with Twitter');
      return $block;
    case 'view':
      global $user;
      $block['subject'] = t('Sign in with Twitter');
      $block['content'] = twitter_signin_button();
      return $block;
  }
}