You are here

function twitter_user_settings in Twitter 6.4

Same name and namespace in other branches
  1. 6.5 twitter.pages.inc \twitter_user_settings()
  2. 6.2 twitter.pages.inc \twitter_user_settings()
  3. 6.3 twitter.pages.inc \twitter_user_settings()
  4. 7.6 twitter.pages.inc \twitter_user_settings()
  5. 7.3 twitter.pages.inc \twitter_user_settings()
  6. 7.4 twitter.pages.inc \twitter_user_settings()
  7. 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 91
Page callbacks for Twitter module.

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_account_form', $account);
  return $output;
}