function total_control_views_delete_pane_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_pane_display()
Removes view pane displays.
Parameters
$type: The machine readable name of the content type
2 calls to total_control_views_delete_pane_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 117 - total_control.inc
Code
function total_control_views_delete_pane_display($type) {
$view = views_get_view('control_content_panes');
unset($view->display['pane_tc_' . $type]);
$view
->save();
return;
}