Imágenes dentro de la función l de Drupal

Por fin, después de mucho pegarme he sacado una forma límpia de meter imágenes dentro de la función l de Drupal, como lo he logrado.

<?php
print l (
'<img class="mceItem, tdt" title="tiulo" src="'. base_path().file_directory_path().'/1/imagen.png" alt="alt"  />',
'node/16',
array(
'attributes' => array ('title'=> t('titulo'),'alt'=> t('alt')), 'html'=>TRUE)); ?>

Un saludo

Oskar

Trackback URL for this post:

http://www.documentados.com/trackback/251

probaste en usar theme_image?

para no tener que usar el tag <img />

http://api.drupal.org/api/function/theme_image/6

Enviar un comentario nuevo

El contenido de este campo se mantiene como privado y no se muestra públicamente.
To prevent automated spam submissions leave this field empty.
By submitting this form, you accept the Mollom privacy policy.