You are here

function _themkey_prepare_object in ThemeKey 6

Function _themkey_prepare_object().

1 call to _themkey_prepare_object()
_themekey_match_properties in ./themekey_base.inc
Function _themekey_match_properties().

File

./themekey_base.inc, line 115

Code

function _themkey_prepare_object($object) {
  $parameters = array(
    '#raw' => $object,
  );
  $properties = variable_get('themekey_properties', array());
  foreach ($properties as $property => $details) {
    if (($value = _themekey_property_field($object, $details['path'])) != NULL) {
      $parameters[$property] = $value;
    }
  }
  return $parameters;
}