function _mobile_tools_prepare_themekey_rule in Mobile Tools 7.3
Helper function to build the themekey rule chain
Parameters
object $device_group [reference]: Device group
Return value
array Returns an array describing the themekey rule.
1 call to _mobile_tools_prepare_themekey_rule()
- mobile_tools_device_group_save in ./
mobile_tools.module - Saves the given option set to the database.
File
- ./
mobile_tools.module, line 800 - Functionality to ease the creation of mixed device environments.
Code
function _mobile_tools_prepare_themekey_rule(&$device_group) {
// Build the themekey rule
// @todo add second rule for enabled purl provider
$themekey = array(
'property' => 'purl:active_modifier',
'operator' => '=',
'value' => $device_group->dgid,
'theme' => $device_group->theme,
'enabled' => TRUE,
'wildcards' => array(),
'parent' => '',
);
return $themekey;
}