diff options
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc index b7210f668..bae9c2554 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1613,7 +1613,6 @@ function drupal_attributes($attributes = array()) { foreach ($attributes as $key => $value) { $t[] = $key .'="'. check_plain($value) .'"'; } - return ' '. implode($t, ' '); } } @@ -1974,6 +1973,14 @@ if (version_compare(phpversion(), '5.0') < 0) { } /** + * Add a <link> tag to the page's HEAD. + */ +function drupal_add_link($attributes) { + drupal_set_html_head('<link'. drupal_attributes($attributes) .">\n"); +} + + +/** * Add a JavaScript file to the output. * * The first time this function is invoked per page request, |