function theme_twitter_signin_button in Twitter 6.3
Same name and namespace in other branches
- 6.5 twitter_signin/twitter_signin.module \theme_twitter_signin_button()
- 6.4 twitter_signin/twitter_signin.module \theme_twitter_signin_button()
- 7.6 twitter_signin/twitter_signin.module \theme_twitter_signin_button()
- 7.3 twitter_signin/twitter_signin.module \theme_twitter_signin_button()
- 7.4 twitter_signin/twitter_signin.module \theme_twitter_signin_button()
- 7.5 twitter_signin/twitter_signin.module \theme_twitter_signin_button()
Themable function for an image link for signing in with Twitter.
1 theme call to theme_twitter_signin_button()
- twitter_signin_button in twitter_signin/
twitter_signin.module - Returns an image link for signing in with Twitter.
File
- twitter_signin/
twitter_signin.module, line 69
Code
function theme_twitter_signin_button() {
$img_path = drupal_get_path('module', 'twitter_signin') . '/images/';
$img = $img_path . variable_get('twitter_signin_button', 'Sign-in-with-Twitter-lighter-small.png');
return l(theme('image', $img, t('Sign in with Twitter')), 'twitter/redirect', array(
'html' => TRUE,
));
}