You are here

function twitter_account_list_form in Twitter 6.2

Same name and namespace in other branches
  1. 6.5 twitter.pages.inc \twitter_account_list_form()
  2. 6.3 twitter.pages.inc \twitter_account_list_form()
  3. 6.4 twitter.pages.inc \twitter_account_list_form()
  4. 7.6 twitter.pages.inc \twitter_account_list_form()
  5. 7.3 twitter.pages.inc \twitter_account_list_form()
  6. 7.4 twitter.pages.inc \twitter_account_list_form()
  7. 7.5 twitter.pages.inc \twitter_account_list_form()
1 string reference to 'twitter_account_list_form'
twitter_user_settings in ./twitter.pages.inc

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;
}