function twitter_account_list_form in Twitter 6.2
Same name and namespace in other branches
- 6.5 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()
1 string reference to 'twitter_account_list_form'
File
- ./
twitter.pages.inc, line 103
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;
}