You are here

function themekey_book_nid2bid in ThemeKey 6.2

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

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

src: node_nid dst: book:bid

Parameters

$nid: a node id

Return value

a book id or NULL if no value could be mapped

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

File

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

Code

function themekey_book_nid2bid($nid) {
  return themekey_book_get_simple_book_property($nid, 'bid');
}