By mysocom on
Drupal6
I want to add class='apt' to link.
This work: <a href='site/node/2' class='apt'>Go to apt</a>";
This doesn't
l('Go to apt', 'node/$noda->nid', array('class' => 'apt'));
output: <a href='site/node/2'>Go to apt</a>";
Comments
l('Go to apt',
l('Go to apt', 'node/$noda->nid', array('attributes' => array('class' => 'apt')));
worked for me.