function skinr_panels_skinr_elements in Skinr 7.2
Same name and namespace in other branches
- 8.2 skinr_panels/skinr_panels.skinr.inc \skinr_panels_skinr_elements()
Implements hook_skinr_elements().
File
- skinr_panels/
skinr_panels.skinr.inc, line 218 - Implements Skinr hooks for panels.module.
Code
function skinr_panels_skinr_elements($variables, $hook) {
$elements = array();
if ($hook == 'panels_pane') {
$elements['panels'] = array();
if (!empty($variables['pane']->uuid)) {
$elements['panels'][] = 'pane__' . $variables['pane']->uuid;
}
else {
watchdog('skinr', 'Skinr can\'t apply your skin settings to this panel due to missing UUIDs. Re-export your panels to have their UUIDs added.', array(), WATCHDOG_WARNING);
}
}
return $elements;
}