You are here

function node_gallery_api_token_info in Node Gallery 7

Implements hook_token_info().

File

./node_gallery_api.module, line 484
Node Gallery module.

Code

function node_gallery_api_token_info() {

  // Node tokens.
  $info['tokens']['node']['node_gallery_gallery_path'] = array(
    'name' => t('Node Gallery: Path'),
    'description' => t('The gallery path.'),
  );
  $info['tokens']['node']['node_gallery_gallery_title'] = array(
    'name' => t('Node Gallery: Title'),
    'description' => t('The gallery title.'),
  );
  $info['tokens']['node']['node_gallery_gallery_nid'] = array(
    'name' => t('Node Gallery: NID'),
    'description' => t('The gallery Node NID.'),
  );
  return $info;
}