function _themekey_property_field in ThemeKey 6
Function _themekey_property_field().
1 call to _themekey_property_field()
- _themkey_prepare_object in ./
themekey_base.inc - Function _themkey_prepare_object().
File
- ./
themekey_base.inc, line 130
Code
function _themekey_property_field($value, $path) {
//
$parts = explode('/', $path);
foreach ($parts as $part) {
if (is_array($value) && isset($value[$part])) {
$value = (array) $value[$part];
}
else {
return NULL;
}
}
return is_array($value) ? array_keys($value) : $value;
}