l('<link text>', '<link path>', array('attributes' => array('class' => array('class-a', 'class-b'))));
Done =)
Reference: Drupal API – l()
l('<link text>', '<link path>', array('attributes' => array('class' => array('class-a', 'class-b'))));
Done =)
Reference: Drupal API – l()
One thought on “Drupal 7 – Add class to link using l()”