function taxonomy_image_views_handler in Taxonomy Image 5
Handler for Taxonomy Image views field.
File
- ./
taxonomy_image.module, line 655 - taxonomy_image.module Simple module for providing an association between taxonomy terms and images. Written by Jeremy Andrews <jeremy@kerneltrap.org>, May 2004.
Code
function taxonomy_image_views_handler($fieldinfo, $fielddata, $value, $data) {
if (empty($fielddata['options'])) {
return taxonomy_image_display($value, NULL, NULL, array(
'wrapper' => FALSE,
));
}
else {
$profile = imagecache_preset($fielddata['options']);
$profile_name = $profile['presetname'];
$img = taxonomy_image_display($value, $data->name, $profile_name, array(
'wrapper' => FALSE,
));
return $img;
}
}