You are here

function theme_colorized_gmap_table_form in Colorized google maps block 7

Theme callback for the form table.

1 theme call to theme_colorized_gmap_table_form()
_colorized_gmap_form_map_stylers in ./colorized_gmap.admin.inc
Helper function. Create form elements for map styles.

File

./colorized_gmap.theme.inc, line 11
Theme functions.

Code

function theme_colorized_gmap_table_form(&$variables) {
  $output = '';
  $form = $variables['form'];
  $rows = $form['settings'];
  $header = $form['#header'];
  $content = array(
    '#theme' => 'table',
    '#header' => $header,
    '#rows' => array(),
  );
  foreach (element_children($rows) as $row_index) {
    $row = array();
    foreach (element_children($rows[$row_index]) as $col_index) {
      $row[] = drupal_render($rows[$row_index][$col_index]);
    }
    $content['#rows'][] = $row;
  }
  $output .= drupal_render($content);
  return $output;
}