Same name and namespace in other branches
  1. 4.6.x includes/common.inc \drupal_add_link()
  2. 5.x includes/common.inc \drupal_add_link()
  3. 6.x includes/common.inc \drupal_add_link()

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

Related topics

6 calls to drupal_add_link()
blogapi_menu in modules/blogapi.module
blog_page_last in modules/blog.module
Displays a Drupal page containing recent blog entries of all users.
blog_page_user in modules/blog.module
Displays a Drupal page containing recent blog entries of a given user.
node_page_default in modules/node.module
Generate a listing of promoted nodes.
theme_book_navigation in modules/book.module
Prepares the links to children (TOC) and forward/backward navigation for a node presented as a book page.

... See full list

File

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

Code

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