function themekey_blog_themekey_properties in ThemeKey 7.3
Same name and namespace in other branches
- 7.2 modules/themekey.blog.inc \themekey_blog_themekey_properties()
Implements hook_themekey_properties().
Provides additional properties for the ThemeKey module: themekey_ui:node_triggers_theme themekey_ui:author_triggers_theme
Return value
array of themekey properties
File
- modules/
themekey.blog.inc, line 27 - @author Markus Kalkbrenner | bio.logis GmbH
Code
function themekey_blog_themekey_properties() {
// Attributes for properties
$attributes = array();
$attributes['blog:uid'] = array(
'description' => t('Blog: User ID - The id of the user (uid) who owns the blog.'),
'validator' => 'themekey_validator_ctype_digit',
'page cache' => THEMEKEY_PAGECACHE_SUPPORTED,
);
// Mapping functions
$maps = array();
$maps[] = array(
'src' => 'node:nid',
'dst' => 'blog:uid',
'callback' => 'themekey_blog_nid2uid',
);
$maps[] = array(
'src' => 'blog:uid',
'dst' => 'themekey_ui:author_triggers_theme',
'callback' => 'themekey_blog_author2theme',
);
return array(
'attributes' => $attributes,
'maps' => $maps,
);
}