You are here

function themekey_blog_nid2uid in ThemeKey 7.3

Same name and namespace in other branches
  1. 7.2 modules/themekey.blog.inc \themekey_blog_nid2uid()

ThemeKey mapping function to set a ThemeKey property's value (destination) with the aid of another ThemeKey property (source).

src: node:nid dst: blog:uid

Parameters

$nid: a node id

Return value

int or NULL if no value could be mapped

1 string reference to 'themekey_blog_nid2uid'
themekey_blog_themekey_properties in modules/themekey.blog.inc
Implements hook_themekey_properties().

File

modules/themekey.blog.inc, line 95
@author Markus Kalkbrenner | bio.logis GmbH

Code

function themekey_blog_nid2uid($nid) {
  if ('blog' == themekey_node_get_simple_node_property($nid, 'type')) {
    return themekey_node_get_simple_node_property($nid, 'uid');
  }
  return NULL;
}