function twitter_account_list_form in Twitter 6.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()
- 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 107 - 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;
}