You are here

function panelizer_delete_node_panelizer in Panelizer 7

Same name and namespace in other branches
  1. 6 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_node_delete().

File

includes/node.inc, line 113
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_delete('panelizer_node')
      ->condition('nid', $panelizer->nid)
      ->execute();
  }
}