function messaging_twitter_admin in Messaging 6.4
Same name and namespace in other branches
- 6 messaging_twitter/messaging_twitter.module \messaging_twitter_admin()
- 6.2 messaging_twitter/messaging_twitter.module \messaging_twitter_admin()
- 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 133 - 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 && function_exists('twitter_fetch_account_info')) {
// This will work only for Twitter 6.x-2.x version
$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;
}