You are here

function mappy_tokens in Mappy 7

Implements hook_tokens().

File

./mappy.module, line 84
Module file for mappy.

Code

function mappy_tokens($type, $tokens, array $data = array(), array $options = array()) {
  $replacements = array();
  if ($type == 'mappy') {
    foreach ($tokens as $name => $original) {
      $replacements[$original] = mappy_token_to_html($original);
    }
  }
  return $replacements;
}