function total_control_views_delete_page_display in Total Control Admin Dashboard 6.2
Same name and namespace in other branches
- 7.2 includes/total_control.inc \total_control_views_delete_page_display()
Removes view page displays.
Parameters
$type: The machine readable name of the content type
2 calls to total_control_views_delete_page_display()
- total_control_admin_settings_submit in ./
total_control.admin.inc - Submit function for settings page
- total_control_remove_type_submit in includes/
total_control.inc - Submit function for delete content type confirm form
File
- includes/
total_control.inc, line 101 - total_control.inc
Code
function total_control_views_delete_page_display($type) {
$view = views_get_view('control_content');
unset($view->display['page_tc_' . $type]);
$view
->save();
menu_cache_clear_all();
return;
}