4.6.x common.inc drupal_add_link($attributes)
4.7.x common.inc drupal_add_link($attributes)
5.x common.inc drupal_add_link($attributes)
6.x common.inc drupal_add_link($attributes)

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

3 calls to drupal_add_link()
blogapi_init in modules/blogapi/blogapi.module
drupal_add_feed in includes/common.inc
Add a feed URL for the current page.
template_preprocess_book_navigation in modules/book/book.module
Process variables for book-navigation.tpl.php.

File

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

Code

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

Comments

cygri’s picture

In Drupal 7, use drupal_add_html_head_link() instead.