1 views_ui.admin.inc | views_ui_revert_form($form, &$form_state, view $view) |
Form callback; Delete a view.
File
- core/
modules/ views_ui/ views_ui.admin.inc, line 2039 - Admin page callbacks for the Views UI module.
Code
function views_ui_revert_form($form, &$form_state, view $view) {
$form_state['view'] = $view;
$question = t('Revert the view @name?', array('@name' => $view->get_human_name()));
$path = 'admin/structure/views';
$description = t('Reverting the view %name will restore it to the original settings provided by the "@module" module.', array('%name' => $view->get_human_name(), '@module' => $view->module));
return confirm_form($form, $question, $path, $description, t('Revert'));
}