function panelizer_delete_panelizer_defaults in Panelizer 6
Same name and namespace in other branches
- 7.3 includes/admin.inc \panelizer_delete_panelizer_defaults()
- 7 includes/admin.inc \panelizer_delete_panelizer_defaults()
- 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 285 - 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_query('DELETE FROM {panelizer_defaults} WHERE pnid = %d', $panelizer->pnid);
}
}