From f5ebd774b1889163cef455dadb589b6b02df0b6a Mon Sep 17 00:00:00 2001 From: Angie Byron <webchick@24967.no-reply.drupal.org> Date: Sun, 21 Nov 2010 10:05:27 +0000 Subject: [PATCH] #972918 by jhodgdon: Add api documentation for class attribute for the l() function --- includes/common.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/common.inc b/includes/common.inc index 9b18292f66c8..f7a6ce3a4199 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -2235,7 +2235,9 @@ function drupal_attributes(array $attributes = array()) { * @param array $options * An associative array of additional options, with the following elements: * - 'attributes': An associative array of HTML attributes to apply to the - * anchor tag. + * anchor tag. If element 'class' is included, it must be an array; 'title' + * must be a string; other elements are more flexible, as they just need + * to work in a call to drupal_attributes($options['attributes']). * - 'html' (default FALSE): Whether $text is HTML or just plain-text. For * example, to make an image tag into a link, this must be set to TRUE, or * you will see the escaped HTML image tag. -- GitLab