1 views_ui.admin.inc | views_ui_edit_form_submit_disable_display($form, &$form_state) |
Submit handler to disable display.
File
- core/
modules/ views_ui/ views_ui.admin.inc, line 1459 - Admin page callbacks for the Views UI module.
Code
function views_ui_edit_form_submit_disable_display($form, &$form_state) {
$id = $form_state['display_id'];
$form_state['view']->display[$id]->handler->set_option('enabled', FALSE);
// Store in cache
views_ui_cache_set($form_state['view']);
// Redirect to the top-level configure page.
$form_state['redirect'] = 'admin/structure/views/view/' . $form_state['view']->name . '/configure/' . $id;
}