function views_ui_edit_form_submit_disable_display
3.x admin.inc | views_ui_edit_form_submit_disable_display($form, &$form_state) |
Submit handler to disable display.
1 string reference to 'views_ui_edit_form_submit_disable_display'
- views_ui_get_display_tab_details in includes/
admin.inc - Helper function to get the display details section of the edit UI.
File
- includes/
admin.inc, line 1407 - Provides the Views' administrative interface.
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 edit page.
$form_state['redirect'] = 'admin/structure/views/view/' . $form_state['view']->name . '/edit/' . $id;
}