function twitter_signin_block in Twitter 6.3
Same name and namespace in other branches
- 6.5 twitter_signin/twitter_signin.module \twitter_signin_block()
- 6.4 twitter_signin/twitter_signin.module \twitter_signin_block()
Implementation of hook_block().
File
- twitter_signin/
twitter_signin.module, line 34
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;
if (!$user->uid && _twitter_use_oauth()) {
$block['subject'] = t('Sign in with Twitter');
$block['content'] = twitter_signin_button();
return $block;
}
}
}