You are here

function gallery_assist_token_list in Gallery Assist 6

Implementation of hook_token_list().

File

./gallery_assist.module, line 5458
Drupal content type with gallery functionality.

Code

function gallery_assist_token_list($type = 'all') {
  if ($type == 'node' || $type == 'all') {
    $tokens['item']['ga-pid'] = t("The image ID");
    $tokens['item']['ga-ptitle'] = t("Image name");
    $tokens['item']['ga-palt'] = t("Image alternative text");
    $tokens['item']['ga-pdescription'] = t("Image Caption");
    $tokens['item']['ga-copyright'] = t("Image copyright information");
    $tokens['node']['ga-gref'] = t("The gallery referenced ID.");
    $tokens['node']['ga-ref'] = t("The gallery referenced node ID.");
    return $tokens;
  }
}