function twitter_account_list_form in Twitter 7.4
Same name and namespace in other branches
- 6.5 twitter.pages.inc \twitter_account_list_form()
- 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.5 twitter.pages.inc \twitter_account_list_form()
@todo Please document this function.
See also
1 string reference to 'twitter_account_list_form'
- twitter_user_settings in ./
twitter.pages.inc - Calls the form builder that lists Twitter accounts.
File
- ./
twitter.pages.inc, line 100 - Page callbacks for Twitter module.
Code
function twitter_account_list_form($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;
}