function uuid_panelizer_features_rebuild in UUID Features Integration 7
Implements hook_features_rebuild().
Rebuilds users based on UUID from code defaults.
2 calls to uuid_panelizer_features_rebuild()
- panelizer_uuid_entity_features_rebuild_alter in includes/
modules/ panelizer.inc - Implements hook_uuid_entity_features_rebuild_alter().
- uuid_panelizer_features_revert in includes/
uuid_panelizer.features.inc - Implements hook_features_revert().
File
- includes/
uuid_panelizer.features.inc, line 146 - Features hooks for the panelizer features component.
Code
function uuid_panelizer_features_rebuild($module) {
$panelizer_entity_displays = features_get_default('uuid_panelizer', $module);
if (!empty($panelizer_entity_displays)) {
foreach ($panelizer_entity_displays as $display) {
$did = db_query("SELECT did FROM {panels_display} WHERE uuid = :uuid", array(
':uuid' => $display->uuid,
))
->fetchField();
if ($did) {
$display->did = $did;
}
drupal_alter('uuid_panelizer_features_rebuild', $display, $module);
panels_save_display($display);
}
}
}