function themekey_workbench_access_themekey_properties in ThemeKey 7.3
Implements hook_themekey_properties().
Provides additional properties for the ThemeKey module: workbench_access:access_id
Return value
array of themekey properties
File
- modules/
themekey.workbench_access.inc, line 26 - Integrates Workbench Access module into ThemeKey.
Code
function themekey_workbench_access_themekey_properties() {
$attributes = array();
$attributes['workbench_access:access_id'] = array(
'description' => t('Workbench: Access ID - The id of the of the taxonomy term used as the access id'),
'validator' => 'themekey_validator_ctype_digit',
'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
);
$maps = array();
$maps[] = array(
'src' => 'node:nid',
'dst' => 'workbench_access:access_id',
'callback' => 'themekey_workbench_access_nid2access_id',
);
return array(
'attributes' => $attributes,
'maps' => $maps,
);
}