function panels_delete_display in Panels 6.2
Same name and namespace in other branches
- 8.3 panels.module \panels_delete_display()
- 5.2 panels.module \panels_delete_display()
- 6.3 panels.module \panels_delete_display()
- 7.3 panels.module \panels_delete_display()
Delete a display.
Related topics
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.write.inc - 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 759 - panels.module
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);
}