function views_ui_config_item_form_remove in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 8.3 views_ui/admin.inc \views_ui_config_item_form_remove()
- 6.2 includes/admin.inc \views_ui_config_item_form_remove()
- 7.3 includes/admin.inc \views_ui_config_item_form_remove()
Submit handler for removing an item from a view
File
Code
function views_ui_config_item_form_remove($form, &$form_state) {
// Store the item back on the view
$form_state['view']
->set_item($form_state['display_id'], $form_state['type'], $form_state['id'], NULL);
// Write to cache
views_ui_cache_set($form_state['view']);
}