You are here

function img_assist_token_values in Image Assist 6.2

Same name and namespace in other branches
  1. 5.3 includes/img_assist.token.inc \img_assist_token_values()
  2. 5.2 includes/img_assist.token.inc \img_assist_token_values()

Implementation of hook_token_values().

File

includes/img_assist.token.inc, line 6

Code

function img_assist_token_values($type, $object = NULL, $options = array()) {
  $values = array();
  switch ($type) {
    case 'node':
      $node = $object;
      $values['teaser'] = img_assist_sanitize($node->teaser);
      $values['body'] = img_assist_sanitize($node->body);
      break;
  }
  return $values;
}