function views_ui_edit_details_form

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

Form constructor callback to edit details of a view

1 string reference to 'views_ui_edit_details_form'
views_ui_edit_details in includes/admin.inc
Page callback to edit details of a view.

File

includes/admin.inc, line 2325

Code

function views_ui_edit_details_form(&$form_state) {
    $view =& $form_state['view'];
    $form['#title'] = t('View details');
    $form['#section'] = 'details';
    switch ($form_state['property']) {
        case 'human_name':
            $form['human_name'] = array(
                '#type' => 'textfield',
                '#title' => t('Human readable name'),
                '#description' => t('You can use a more descriptive name for this view here. Spaces are allowed'),
                '#default_value' => $view->human_name,
            );
            break;
        case 'tag':
            $form['tag'] = array(
                '#type' => 'textfield',
                '#title' => t('View tag'),
                '#description' => t('Enter an optional tag for this view; it is used only to help sort views on the administrative page.'),
                '#default_value' => $view->tag,
                '#autocomplete_path' => 'admin/views/ajax/autocomplete/tag',
            );
            break;
        case 'description':
            $form['description'] = array(
                '#type' => 'textfield',
                '#title' => t('View description'),
                '#description' => t('This description will appear on the Views administrative UI to tell you what the view is about.'),
                '#default_value' => $view->description,
            );
            break;
    }
    views_ui_standard_form_buttons($form, $form_state, 'views_ui_edit_details_form');
    return $form;
}