function l() with parameters

Public

l function with image embeded and additional parameters

</> CopyGet raw version
php
  1. <?php
  2. print l('<img src="'.drupal_get_path('theme', 'yourthemename').'/img/header/sign.png">',
  3. 'signup',
  4. array('html'=>TRUE,
  5. 'attributes'=> array('class'=>array('signup_link'),
  6. 'target' => '_blank',
  7. 'query'=>array('id'=>'5','status'=>'ok'),
  8. 'fragment' => '',
  9. 'external' => TRUE
  10. )
  11. )
  12. );
  13.  
  14. // use fragment for link anchor
  15. ?>