function views_ui_remove_display_form_submit in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 includes/admin.inc \views_ui_remove_display_form_submit()
Submit handler to add a remove to a display from a view.
1 string reference to 'views_ui_remove_display_form_submit'
- views_ui_remove_display_form in includes/
admin.inc - Form to remove a display from a view.
File
Code
function views_ui_remove_display_form_submit($form, &$form_state) {
// Create the new display
$plugin = views_fetch_plugin_data('display', $form_state['view']->display[$form_state['display_id']]->display_plugin);
if (empty($plugin['no remove'])) {
$id = $form_state['display_id'];
$form_state['view']->display[$id]->deleted = TRUE;
// Store in cache
views_ui_cache_set($form_state['view']);
}
}