Drupal 7: Link l() function with attributes.
l(
t('Link Title'),
'link_path',
array(
'attributes' => array(
'class' => array(
'menu-link',
'another-class',
),
'id' =>'faq-page',
),
'query' => array(
'foo' => 'bar',
),
'fragment' => 'refresh',
'html' => TRUE,
),
);
l(
t('<span></span>Link Title'),
'link_path',
array(
'attributes' => array(
'class' => array('menu-link'),
'id' =>'faq-page',
),
'html' => TRUE,
),
);