You are here

function views_ui_render_section_add in Views (for Drupal 7) 5

Render the add buttons for one of the dynamic sections on our form.

1 call to views_ui_render_section_add()
theme_views_edit_view in ./views_ui.module
Display the form built by _views_view_form()

File

./views_ui.module, line 1730

Code

function views_ui_render_section_add(&$form, $items, $label) {
  asort($form['id']['#options']);
  foreach ($items as $item) {
    $row[] = drupal_render($form[$item], false);
  }
  $rows[] = $row;
  $header = array(
    array(
      'data' => $label,
      'colspan' => count($items),
    ),
  );
  return theme('table', $header, $rows) . "<br />";
}