You are here

function img_assist_token_values in Image Assist 5.3

Same name and namespace in other branches
  1. 5.2 includes/img_assist.token.inc \img_assist_token_values()
  2. 6.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;
}