Drupal 7 – Add class to link using 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()”

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.