Creating a linkable image source


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.