How do I add a class to a link generated with l()
You can add attributes by using the 'attributes' key in the options array:
l
(
'text'
,
'path'
,
array
(
'attributes'
=
>
array
(
'class'
=
>
'myclass'
)
)
)
;