Posted By

discipolo on 02/15/11


Tagged

images search-resultstplphp


Versions (?)

Drupal 7 images in searchresultts


 / Published in: PHP
 

URL: http://drupal.org/node/1047382#comment-4092634

this took me forever to figure out!

  1. <?php
  2. $path = image_style_url('thumbnail', $result['node']->field_cover_image['de'][0]['uri']);
  3. print theme('image', array(
  4. 'path' => $path,
  5. 'alt' => t('Home'),
  6. 'title' => t('Home')))
  7. ?>

Report this snippet  

You need to login to post a comment.