function views_ui_edit_display_form

3.x admin.inc views_ui_edit_display_form($form, &$form_state)
2.x admin.inc views_ui_edit_display_form(&$form_state)

Form constructor callback to edit display of a view

1 string reference to 'views_ui_edit_display_form'

File

includes/admin.inc, line 2010
admin.inc Provides the Views' administrative interface.

Code

function views_ui_edit_display_form(&$form_state) {
  $view = &$form_state['view'];
  $display_id = $form_state['display_id'];
  $section = $form_state['section'];

  if (!$view->set_display($display_id)) {
    views_ajax_render(t('Invalid display id @display', array('@display' => $display_id)));
  }
  $display = &$view->display[$display_id];

  // Get form from the handler.
  $display->handler->options_form($form, $form_state);
  $name = NULL;
  if (isset($form_state['update_name'])) {
    $name = $form_state['update_name'];
  }

  views_ui_standard_form_buttons($form, $form_state, 'views_ui_edit_display_form', $name);
  return $form;
}