img_assist.token.inc in Image Assist 6.2
File
includes/img_assist.token.inc
View source
<?php
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;
}
function img_assist_token_list($type = 'all') {
if ($type == 'node' || $type == 'all') {
$tokens['node']['teaser'] = t('Node teaser text (plain text)');
$tokens['node']['body'] = t('Node body text (plain text)');
return $tokens;
}
}