You are here

function _theme_views_ui_style_d3_options_form_row in d3.js 7

Helper function to keep code for each row contained.

See also

theme_views_ui_style_d3_options_form().

1 call to _theme_views_ui_style_d3_options_form_row()
theme_views_ui_style_d3_options_form in modules/d3_views/d3_views.module
Theme the form for the table style plugin.

File

modules/d3_views/d3_views.module, line 50
D3 views module file.

Code

function _theme_views_ui_style_d3_options_form_row(&$element, &$header) {
  $td = array();
  foreach (element_children($element) as $key) {

    // Use the title for the header of the table, and not the label.
    $header[] = isset($element[$key]['#title']) ? $element[$key]['#title'] : '';

    // Make sure it doesn't get rendered as a label.
    unset($element[$key]['#title']);
    $td[] = drupal_render($element[$key]);
  }
  return $td;
}