You are here

function theme_twitter_signin_button in Twitter 6.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. 7.6 twitter_signin/twitter_signin.module \theme_twitter_signin_button()
  4. 7.3 twitter_signin/twitter_signin.module \theme_twitter_signin_button()
  5. 7.4 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 70
Hook implementations for twitter_signin module.

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,
  ));
}