You are here

function panelizer_delete_panelizer_defaults in Panelizer 7

Same name and namespace in other branches
  1. 6 includes/admin.inc \panelizer_delete_panelizer_defaults()
  2. 7.3 includes/admin.inc \panelizer_delete_panelizer_defaults()
  3. 7.2 includes/admin.inc \panelizer_delete_panelizer_defaults()

Delete a panelizer node panel from the database.

1 call to panelizer_delete_panelizer_defaults()
panelizer_default_settings_page in includes/admin.inc
Page to configure basic settings for a panelizer default.

File

includes/admin.inc, line 267
Contains administrative forms and settings.

Code

function panelizer_delete_panelizer_defaults($panelizer) {
  if (!empty($panelizer->pnid)) {
    if (!empty($panelizer->did)) {
      panels_delete_display($panelizer->did);
    }
    db_delete('panelizer_defaults')
      ->condition('pnid', $panelizer->pnid)
      ->execute();
  }
}