You are here

function theme_twitter_signin_button in Twitter 7.4

Same name and namespace in other branches
  1. 6.5 twitter_signin/twitter_signin.module \theme_twitter_signin_button()
  2. 6.3 twitter_signin/twitter_signin.module \theme_twitter_signin_button()
  3. 6.4 twitter_signin/twitter_signin.module \theme_twitter_signin_button()
  4. 7.6 twitter_signin/twitter_signin.module \theme_twitter_signin_button()
  5. 7.3 twitter_signin/twitter_signin.module \theme_twitter_signin_button()
  6. 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 71
Hook implementations for Twitter Signin module.

Code

function theme_twitter_signin_button() {
  $img = drupal_get_path('module', 'twitter_signin') . '/images/' . variable_get('twitter_signin_button', 'Sign-in-with-Twitter-lighter-small.png');
  return l(theme('image', array(
    'path' => $img,
    'alt' => t('Sign in with Twitter'),
  )), 'twitter/redirect', array(
    'html' => TRUE,
  ));
}