You are here

function theme_gmap_views_ui_gmapextended in GMap Module 7.2

Same name and namespace in other branches
  1. 7 gmap.module \theme_gmap_views_ui_gmapextended()

Views map theme.

File

./gmap.module, line 1449
GMap -- Routines to use the Google Maps API in Drupal.

Code

function theme_gmap_views_ui_gmapextended($variables) {
  $form = $variables['form'];
  $output = drupal_render($form['description_markup']);
  $header = array(
    t('Field'),
    t('Purpose'),
    t('Separator'),
  );
  $rows = array();
  foreach (element_children($form['field_purposes']) as $id) {
    $row = array();
    $row[] = drupal_render($form['info'][$id]['name']);
    $row[] = drupal_render($form['field_purposes'][$id]);
    $row[] = drupal_render($form['info'][$id]['separator']);
    $rows[] = $row;
  }

  // Add the special 'None' row.
  // $rows[] = array(t('None'), '', '', '',
  // array('align' => 'center', 'data' => drupal_render($form['default'][-1])));
  $output .= theme('table', array(
    'header' => $header,
    'rows' => $rows,
  ));
  $output .= drupal_render_children($form);
  return $output;
}