image_style_url 生成指定缩略图url

后端开发2014-11-16

modules/image/image.module

function image_style_url($style_name, $path) {...}
 
//example:
$imgItem = field_get_items('node', $node, 'field_image');
$imgUrl = image_style_url("com_introduce", $imgItem[0]['uri']);