function panelizer_export_delete_callback_subrecords in Panelizer 7.2
Same name and namespace in other branches
- 7.3 panelizer.module \panelizer_export_delete_callback_subrecords()
export.inc callback to load sub records for an object.
1 string reference to 'panelizer_export_delete_callback_subrecords'
- panelizer_schema_1 in ./
panelizer.install - Schema version 1 for Panels in D6.
File
- ./
panelizer.module, line 735 - The Panelizer module attaches panels to entities, providing default panels and allowing each panel to be configured independently by privileged users.
Code
function panelizer_export_delete_callback_subrecords($objects) {
$dids = array();
foreach ($objects as $panelizer) {
if (!empty($panelizer->did)) {
$dids[$panelizer->did] = $panelizer->did;
}
}
if ($dids) {
$displays = panels_load_displays($dids);
foreach ($objects as $panelizer) {
if (!empty($panelizer->did) && !empty($displays[$panelizer->did])) {
$panelizer->display = $displays[$panelizer->did];
}
}
}
}