function book_token_list in Token 5
Same name and namespace in other branches
- 6 token_node.inc \book_token_list()
File
- ./
token_node.inc, line 258 - Implementations of token module hooks for the core node and book modules.
Code
function book_token_list($type) {
if ($type == 'node' || $type == 'all') {
$list['book']['book'] = t("The title of the node's book parent.");
$list['book']['book_id'] = t("The id of the node's book parent.");
$list['book']['bookpath'] = t("The titles of all parents in the node's book hierarchy.");
$list['book']['book-raw'] = t("The unfiltered title of the node's book parent.");
$list['book']['bookpath-raw'] = t("The unfiltered titles of all parents in the node's book hierarchy.");
return $list;
}
}