You are here

function theme_data_search_admin_form in Data 6

Same name and namespace in other branches
  1. 8 data_search/data_search.admin.inc \theme_data_search_admin_form()
  2. 7 data_search/data_search.admin.inc \theme_data_search_admin_form()

Theme data_search_admin_form.

File

data_search/data_search.admin.inc, line 62

Code

function theme_data_search_admin_form($form) {

  // Format existing fields.
  $rows = array();
  foreach (element_children($form['fields']) as $e) {
    $row = array();
    foreach (element_children($form['fields'][$e]) as $f) {
      $row[] = drupal_render($form['fields'][$e][$f]);
    }
    $rows[] = $row;
  }
  $header = array(
    t('Name'),
    t('Search index'),
  );
  $output = theme('table', $header, $rows);
  $output .= drupal_render($form);
  return $output;
}