function themekey_book_nid2bid in ThemeKey 7
Same name and namespace in other branches
- 6.4 modules/themekey.book.inc \themekey_book_nid2bid()
- 6.2 modules/themekey.book.inc \themekey_book_nid2bid()
- 6.3 modules/themekey.book.inc \themekey_book_nid2bid()
- 7.3 modules/themekey.book.inc \themekey_book_nid2bid()
- 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 70 - Provides some comment attributes as ThemeKey properties.
Code
function themekey_book_nid2bid($nid) {
return themekey_book_get_simple_book_property($nid, 'bid');
}