Posted By

karmacode on 01/27/10


Tagged

drupal dev


Versions (?)

Creating a linkable image source


 / Published in: PHP
 

Use the l() in Drupal with an array('html' => TRUE) to get a linked image

  1. $wow_image_path = theme('imagecache', 'wedding_of_the_week_thumbnail', $imagepath);
  2. $vars['wedding_of_the_week'][0]->image_thumb = l($wow_image_path, 'node/'.$vars['wedding_of_the_week'][0]->nid, array('html' => TRUE));

Report this snippet  

You need to login to post a comment.