function panels_delete_display in Panels 5.2
Same name and namespace in other branches
- 8.3 panels.module \panels_delete_display()
- 6.3 panels.module \panels_delete_display()
- 6.2 panels.module \panels_delete_display()
- 7.3 panels.module \panels_delete_display()
Delete a display.
5 calls to panels_delete_display()
- panels_mini_delete in panels_mini/
panels_mini.module - Delete a mini panel.
- panels_mini_uninstall in panels_mini/
panels_mini.install - Implementation of hook_uninstall().
- panels_node_delete in panels_node/
panels_node.module - Implementation of hook_delete().
- panels_page_context_form_submit in panels_page/
panels_page.admin.inc - Process submission of the panel page edit form.
- panels_page_delete in panels_page/
panels_page.module - Delete a panel page and its associated displays.
1 string reference to 'panels_delete_display'
- panels_mini_uninstall in panels_mini/
panels_mini.install - Implementation of hook_uninstall().
File
- ./
panels.module, line 807 - panels.module Core API for Panels. Provides display editing and rendering capabilities.
Code
function panels_delete_display($display) {
if (is_object($display)) {
$did = $display->did;
}
else {
$did = $display;
}
db_query("DELETE FROM {panels_display} WHERE did = %d", $did);
db_query("DELETE FROM {panels_pane} WHERE did = %d", $did);
}