function twitter_account_list_form in Twitter 6.5
Same name and namespace in other branches
- 6.2 twitter.pages.inc \twitter_account_list_form()
- 6.3 twitter.pages.inc \twitter_account_list_form()
- 6.4 twitter.pages.inc \twitter_account_list_form()
- 7.6 twitter.pages.inc \twitter_account_list_form()
- 7.3 twitter.pages.inc \twitter_account_list_form()
- 7.4 twitter.pages.inc \twitter_account_list_form()
- 7.5 twitter.pages.inc \twitter_account_list_form()
Formats each Twitter account as a row within a form.
1 string reference to 'twitter_account_list_form'
- twitter_user_settings in ./
twitter.pages.inc - Form builder that lists Twitter accounts.
File
- ./
twitter.pages.inc, line 182 - Page callbacks for Twitter module.
Code
function twitter_account_list_form($form_state, $twitter_accounts = array()) {
$form['#tree'] = TRUE;
$form['accounts'] = array();
foreach ($twitter_accounts as $twitter_account) {
$form['accounts'][] = _twitter_account_list_row($twitter_account);
}
if (!empty($twitter_accounts)) {
$form['buttons']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save changes'),
);
}
return $form;
}