Last active
December 22, 2015 01:18
-
-
Save jeremycaldwell/6395037 to your computer and use it in GitHub Desktop.
Drupal - l() function with HTML and class.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php print l('<span>' . t('MY TITLE') . '</span>', 'myurl', array('html' => TRUE, 'title' => t('SOME TITLE'), 'attributes' => array('class' => 'myclass'))); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$options = array( | |
'html' => TRUE, | |
'title' => t('SOME TITLE'), | |
'attributes' => array('class' => array('button color medium')) | |
); | |
$output['content'] = l(t('Schedule an appointment'), 'node/8', $options); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment