Web Design and Development Made Simple - Iceous Design by Jokosetio Halim
Aug 12, 2010
0 comments

Drupal 6 - cheatsheet - l function

l function

//regular l function

<?php print l("what ever the text", "link url"); ?>

 

// l function with nofollow

<?php print l("what ever the text", "link url", 
array("attributes"=>array("rel" => "nofollow"))); ?>

 

// adding img to l function

<?php print l("<img src='/sites/all/themes/zen/images/submit-buynow.gif'>", 
"node/15", array("html"=> TRUE)); ?>

 

// adding img with no follow

<?php print l('<img src="/sites/all/themes/zen/images/submit-buynow.gif">', 
'node/'. $data,
array('html' => TRUE, 'attributes' => array('rel' => 'nofollow'))); ?>
Add A Comment
Comment(*):
Your Name(*):
Email:
Website:
This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)
Code in the picture:
 

My Blog RSS Newsfeed

Creative Circle

Design and Development

Creative Writing