function twitter_account_form in Twitter 7.4
Same name and namespace in other branches
- 6.3 twitter.pages.inc \twitter_account_form()
- 6.4 twitter.pages.inc \twitter_account_form()
- 7.3 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 - Calls the form builder that lists Twitter accounts.
File
- ./
twitter.pages.inc, line 308 - Page callbacks for Twitter module.
Code
function twitter_account_form($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;
}