function themekey_purl_themekey_properties in ThemeKey 7.3
Same name and namespace in other branches
- 7.2 modules/themekey.purl.inc \themekey_purl_themekey_properties()
Implements hook_themekey_properties().
Provides additional properties for the ThemeKey module:
- purl:active_provider
Return value
array of themekey properties
File
- modules/
themekey.purl.inc, line 23 - @author Markus Kalkbrenner | bio.logis GmbH
Code
function themekey_purl_themekey_properties() {
// Attributes for properties
$attributes = array();
// Support for PURL Providers
$attributes['purl:active_provider'] = array(
'description' => t('Purl: Active Provider - The active provider that triggered the current id.'),
//'validator' => 'themekey_validator_purl_providers',
// TODO page cache support depends on the purl processors executed
'page cache' => THEMEKEY_PAGECACHE_UNSUPPORTED,
);
// Support for PURL modifiers
$attributes['purl:active_modifier'] = array(
'description' => t('Purl: Active Modifier - The active modifier for the triggered provider'),
//'validator' => 'themekey_validator_purl_modifiers',
// TODO page cache support depend on the purl processors executed
'page cache' => THEMEKEY_PAGECACHE_UNSUPPORTED,
);
// Mapping functions
$maps = array();
// Map for PURL Provider
$maps[] = array(
'src' => 'system:dummy',
'dst' => 'purl:active_provider',
'callback' => 'themekey_purl_dummy2active_provider',
);
// Map for PURL Modifier
$maps[] = array(
'src' => 'system:dummy',
'dst' => 'purl:active_modifier',
'callback' => 'themekey_purl_dummy2active_modifier',
);
return array(
'attributes' => $attributes,
'maps' => $maps,
);
}