diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-05-09 14:19:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-05-09 14:19:03 +0000 |
commit | b28ce3b0b1ac5c5f4cfd8082a80bb66ae618d7b4 (patch) | |
tree | 7f003cc74aa68722e6ac8406d27d5137563c2832 /includes/common.inc | |
parent | 5b3f42372fcd772063aadbb9b262e943a2163f3b (diff) | |
download | brdo-b28ce3b0b1ac5c5f4cfd8082a80bb66ae618d7b4.tar.gz brdo-b28ce3b0b1ac5c5f4cfd8082a80bb66ae618d7b4.tar.bz2 |
- Patch #62419 by Ber: improved and corrected the PHPdoc of l().
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/includes/common.inc b/includes/common.inc index 4a6447cef..92e29877c 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1053,8 +1053,13 @@ function drupal_attributes($attributes = array()) { * @param $text * The text to be enclosed with the anchor tag. * @param $path - * The Drupal path being linked to, such as "admin/node". Note, this must be a - * system URL as the url() function will generate the alias. + * The Drupal path being linked to, such as "admin/node". Can be an external + * or internal URL. + * - If you provide the full URL, it will be considered an + * external URL. + * - If you provide only the path (e.g. "admin/node"), it is considered an + * internal link. In this case, it must be a system URL as the url() function + * will generate the alias. * @param $attributes * An associative array of HTML attributes to apply to the anchor tag. * @param $query @@ -1063,9 +1068,12 @@ function drupal_attributes($attributes = array()) { * A fragment identifier (named anchor) to append to the link. * @param $absolute * Whether to force the output to be an absolute link (beginning with http:). - * Useful for links that will be displayed outside the site, such as in an RSS feed. + * Useful for links that will be displayed outside the site, such as in an RSS + * feed. * @param $html - * Whether the title is HTML, or just plain-text. + * Whether the title is HTML, or just plain-text. For example for making an + * image a link, this must be set to TRUE, or else you will see the encoded + * HTML. * @return * an HTML string containing a link to the given path. */ |