matt-harris
10/9/2017 - 8:43 AM

Drupal 7: Link l() function with attributes.

Drupal 7: Link l() function with attributes.

l(
  t('<span></span>Link Title'), 
  'link_path', 
  array(
    'attributes' => array(
      'class' => array('menu-link'), 
      'id' =>'faq-page',
    ), 
    'html' => TRUE,
  ),
);