You are here

function themekey_book_nid2has_children in ThemeKey 7.2

Same name and namespace in other branches
  1. 6.4 modules/themekey.book.inc \themekey_book_nid2has_children()
  2. 6.2 modules/themekey.book.inc \themekey_book_nid2has_children()
  3. 6.3 modules/themekey.book.inc \themekey_book_nid2has_children()
  4. 7.3 modules/themekey.book.inc \themekey_book_nid2has_children()
  5. 7 modules/themekey.book.inc \themekey_book_nid2has_children()

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

src: node_nid dst: book:has_children

Parameters

$nid: a node id

Return value

boolean or NULL if no value could be mapped

1 string reference to 'themekey_book_nid2has_children'
themekey_book_themekey_properties in modules/themekey.book.inc
Implements hook_themekey_properties().

File

modules/themekey.book.inc, line 90
Provides some comment attributes as ThemeKey properties.

Code

function themekey_book_nid2has_children($nid) {
  return themekey_book_get_simple_book_property($nid, 'has_children');
}