You are here

function messaging_twitter_admin in Messaging 6

Same name and namespace in other branches
  1. 6.4 messaging_twitter/messaging_twitter.module \messaging_twitter_admin()
  2. 6.2 messaging_twitter/messaging_twitter.module \messaging_twitter_admin()
  3. 6.3 messaging_twitter/messaging_twitter.module \messaging_twitter_admin()

Admin settings

1 string reference to 'messaging_twitter_admin'
messaging_twitter_menu in messaging_twitter/messaging_twitter.module
Implementation of hook_menu().

File

messaging_twitter/messaging_twitter.module, line 119
Messaging Twitter sending method

Code

function messaging_twitter_admin() {
  _messaging_twitter_include();
  $output = '';
  $username = variable_get('messaging_twitter_username', '');
  $password = variable_get('messaging_twitter_password', '');
  if ($username && $password) {
    $account = twitter_fetch_account_info($username, $password);
    $output .= theme('image', $account['profile_image_url'], '', '', array(), FALSE);
    $output .= $account['name'];
  }
  $output .= drupal_get_form('messaging_twitter_admin_form');
  return $output;
}