function twitter_user_settings in Twitter 6.2
Same name and namespace in other branches
- 6.5 twitter.pages.inc \twitter_user_settings()
- 6.3 twitter.pages.inc \twitter_user_settings()
- 6.4 twitter.pages.inc \twitter_user_settings()
- 7.6 twitter.pages.inc \twitter_user_settings()
- 7.3 twitter.pages.inc \twitter_user_settings()
- 7.4 twitter.pages.inc \twitter_user_settings()
- 7.5 twitter.pages.inc \twitter_user_settings()
1 string reference to 'twitter_user_settings'
- twitter_menu in ./
twitter.module - Implementation of hook_meu()
File
- ./
twitter.pages.inc, line 87
Code
function twitter_user_settings($account) {
module_load_include('inc', 'twitter');
$output = '';
// This is directly calling a hook implementation, which is bad and naughty,
// but oh well. We'll fix this in the next reshuffling when user account
// management gets an overhaul.
$twitter_accounts = twitter_twitter_accounts($account);
if (!empty($twitter_accounts)) {
$output .= drupal_get_form('twitter_account_list_form', $twitter_accounts);
}
$output .= drupal_get_form('twitter_add_account', $account);
return $output;
}