You are here

function twitter_account_form in Twitter 6.4

Same name and namespace in other branches
  1. 6.3 twitter.pages.inc \twitter_account_form()
  2. 7.3 twitter.pages.inc \twitter_account_form()
  3. 7.4 twitter.pages.inc \twitter_account_form()

Form to add a Twitter account.

1 string reference to 'twitter_account_form'
twitter_user_settings in ./twitter.pages.inc

File

./twitter.pages.inc, line 291
Page callbacks for Twitter module.

Code

function twitter_account_form($form_state, $account = NULL) {
  if (empty($account)) {
    global $user;
    $account = $user;
  }
  $form['uid'] = array(
    '#type' => 'value',
    '#value' => $account->uid,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Add account'),
  );
  return $form;
}