function panelizer_delete_panelizer_defaults in Panelizer 7.2
Same name and namespace in other branches
- 6 includes/admin.inc \panelizer_delete_panelizer_defaults()
- 7.3 includes/admin.inc \panelizer_delete_panelizer_defaults()
- 7 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 269 - 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();
}
}