You are here

function panelizer_export_delete_callback in Panelizer 6

Same name and namespace in other branches
  1. 7.3 panelizer.module \panelizer_export_delete_callback()
  2. 7 panelizer.module \panelizer_export_delete_callback()
  3. 7.2 panelizer.module \panelizer_export_delete_callback()

export.inc callback to properly delete a panelizer default.

1 string reference to 'panelizer_export_delete_callback'
panelizer_schema_1 in ./panelizer.install
Schema version 1 for Panels in D6.

File

./panelizer.module, line 501
panelizer.module

Code

function panelizer_export_delete_callback($object) {
  if (!empty($object->did)) {
    panels_delete_display($object->did);
  }
  db_query("DELETE FROM {panelizer_defaults} WHERE name = '%s'", $object->name);
}