You are here

function node_gallery_token_list in Node Gallery 6.3

Same name and namespace in other branches
  1. 6 node_gallery.token.inc \node_gallery_token_list()
  2. 6.2 node_gallery.token.inc \node_gallery_token_list()

Implements hook_token_list().

File

./node_gallery.token.inc, line 11
Token module support for the Node Gallery module.

Code

function node_gallery_token_list($type = 'all') {
  $tokens = array();
  if ($type == 'node' || $type == 'all') {
    $tokens['node']['parent-node-gallery-path'] = t('The path of the parent Gallery.');
    $tokens['node']['parent-node-gallery-path-raw'] = t('Unfiltered path of the parent Gallery.  WARNING - raw user input.');
    $tokens['node']['parent-node-gallery-title'] = t('The title of the parent Gallery.');
    $tokens['node']['parent-node-gallery-title-raw'] = t('Unfiltered title of the parent Gallery.  WARNING - raw user input.');
    $tokens['node']['parent-node-gallery-nid'] = t('The NID of the parent Gallery.');
    return $tokens;
  }
}