Community Documentation

drupal_add_link

5 common.inc drupal_add_link($attributes)
6 common.inc drupal_add_link($attributes)

Add a <link> tag to the page's HEAD.

File

includes/common.inc, line 1771
Common functions that many Drupal modules will need to reference.

Code

<?php
function drupal_add_link($attributes) {
  drupal_set_html_head('<link' . drupal_attributes($attributes) . ' />');
}
?>

Comments

No longer exists in D7

In Drupal 7, use drupal_add_html_head_link() instead.

Login or register to post comments