WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

Make Drupal's l( function just be a false link for javascript pointing to the # (hash) sign

Submitted by barnettech on Thu, 01/10/2013 - 12:29

Make Drupal's l( function just be a false link for javascript pointing to the # (hash) sign

This works and is in production for us:

l(t('Start Chat'), '', array('attributes' =>
        array('title' => array('Start Chat with ' . $row2->full_name)),
          'fragment' => ' ', 'external' => TRUE))