function views_ui_edit_display_form

Same name in other branches
  1. 7.x-3.x includes/admin.inc \views_ui_edit_display_form()

Form constructor callback to edit display of a view

1 string reference to 'views_ui_edit_display_form'
views_ui_ajax_forms in includes/admin.inc

File

includes/admin.inc, line 2377

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;
}