API page: http://api.drupal.org/api/drupal/includes--theme.inc/function/theme_links/7
Describe the problem you have found:
attributes: (optional) Attributes for the anchor, or for the tag used in its place if no 'href' is supplied.
This needs to say that if class is supplied, it must be an array:
'attributes' => array(
'class' => array('colorbox-load'),
),
this will crash:
'attributes' => array(
'class' => 'colorbox-load',
),
Comment | File | Size | Author |
---|---|---|---|
#4 | theme_inc-1314396-4.patch | 789 bytes | drupal_was_my_past |
Comments
Comment #1
jhodgdonGood idea, and probably a good project for a novice contributor.
Comment #2
joachim CreditAttribution: joachim commentedIndeed, and could be copied from the docs for http://api.drupal.org/api/drupal/includes--common.inc/function/l/7.
Comment #3
drupal_was_my_past CreditAttribution: drupal_was_my_past commentedWorking on this at BADCamp.
Comment #4
drupal_was_my_past CreditAttribution: drupal_was_my_past commentedPatch attached.
Comment #5
joachim CreditAttribution: joachim commentedLooks good! :)
Comment #6
jhodgdonIndeed, thanks!
Comment #7
catchThanks! Committed and pushed to 8.x, moving to 7.x.
Comment #8
webchickCommitted and pushed to 7.x. Thanks!