/ Published in: PHP
Use the l() in Drupal with an array('html' => TRUE) to get a linked image
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$wow_image_path = theme('imagecache', 'wedding_of_the_week_thumbnail', $imagepath); $vars['wedding_of_the_week'][0]->image_thumb = l($wow_image_path, 'node/'.$vars['wedding_of_the_week'][0]->nid, array('html' => TRUE));