function views_ui_edit_view_form

The main edit view form, which is really just a save/cancel/delete button.

1 string reference to 'views_ui_edit_view_form'
template_preprocess_views_ui_edit_view in includes/admin.inc
Preprocess the view edit page.

File

includes/admin.inc, line 894

Code

function views_ui_edit_view_form(&$form_state, $view) {
    $form['buttons']['save'] = array(
        '#type' => 'submit',
        '#value' => t('Save'),
        '#validate' => array(
            'views_ui_edit_view_form_validate',
        ),
        '#submit' => array(
            'views_ui_edit_view_form_submit',
        ),
    );
    $form['buttons']['cancel'] = array(
        '#type' => 'submit',
        '#value' => t('Cancel'),
        '#submit' => array(
            'views_ui_edit_view_form_cancel',
        ),
    );
    if (is_numeric($view->vid)) {
        $form['buttons']['delete'] = array(
            '#type' => 'submit',
            '#value' => $view->type == t('Overridden') ? t('Revert') : t('Delete'),
            '#submit' => array(
                'views_ui_edit_view_form_delete',
            ),
        );
    }
    $form_state['view'] =& $view;
    return $form;
}