function views_ui_edit_form_submit_enable_display
Submit handler to enable a disabled display.
1 string reference to 'views_ui_edit_form_submit_enable_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 1449
Code
function views_ui_edit_form_submit_enable_display($form, &$form_state) {
$id = $form_state['display_id'];
// set_option doesn't work because this would might affect upper displays.
$form_state['view']->display[$id]->handler
->set_option('enabled', TRUE);
// 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;
}