You are here

function fast_gallery_token_list in Exif 6

Implementation of hook_hoken_list

Parameters

array $type:

File

./exif.module, line 307
implementing the drupal api

Code

function fast_gallery_token_list($type = 'node') {
  if ($type == 'node') {
    $exif = _exif_get_class();
    $ar_iptc = $exif
      ->getHumanReadableIPTCkey();
    foreach ($ar_iptc as $iptc) {
      $tokens['iptc']['iptc_' . $iptc] = 'IPTC Field: ' . $iptc;
    }
    return $tokens;
  }
}