You are here

function panelizer_delete_node_panelizer in Panelizer 6

Same name and namespace in other branches
  1. 7 includes/node.inc \panelizer_delete_node_panelizer()

Delete a panelizer node panel from the database.

2 calls to panelizer_delete_node_panelizer()
panelizer_edit_node_settings_page in includes/node.inc
Page to edit basic settings on a panelized node.
panelizer_node_delete in ./panelizer.module
Implements hook_nodeapi() for delete (D7's hook_node_delete()).

File

includes/node.inc, line 109
Contains routines specific to handling nodes that are panelized.

Code

function panelizer_delete_node_panelizer($panelizer) {
  if (!empty($panelizer->did)) {
    panels_delete_display($panelizer->did);
    db_query("DELETE FROM {panelizer_node} WHERE nid = %d", $panelizer->nid);
  }
}