You are here

function theme_twitter_account_list_form in Twitter 6.2

Same name and namespace in other branches
  1. 6.5 twitter.pages.inc \theme_twitter_account_list_form()
  2. 6.3 twitter.pages.inc \theme_twitter_account_list_form()
  3. 6.4 twitter.pages.inc \theme_twitter_account_list_form()
  4. 7.6 twitter.pages.inc \theme_twitter_account_list_form()
  5. 7.3 twitter.pages.inc \theme_twitter_account_list_form()
  6. 7.4 twitter.pages.inc \theme_twitter_account_list_form()
  7. 7.5 twitter.pages.inc \theme_twitter_account_list_form()

File

./twitter.pages.inc, line 165

Code

function theme_twitter_account_list_form($form) {
  $header = array(
    '',
    t('Name'),
    t('Description'),
    t('Private'),
    t('Import'),
    t('Delete'),
  );
  $rows = array();
  foreach (element_children($form['accounts']) as $key) {
    $element =& $form['accounts'][$key];
    $rows[] = array(
      drupal_render($element['image']),
      drupal_render($element['uid']) . drupal_render($element['screen_name']) . drupal_render($element['visible_name']),
      drupal_render($element['description']),
      drupal_render($element['protected']),
      drupal_render($element['import']),
      drupal_render($element['delete']),
    );
  }
  $output = theme('table', $header, $rows);
  $output .= drupal_render($form);
  return $output;
}