Commit a1674271 authored by Dries's avatar Dries
Browse files

- Patch #232931 by mikey_p, flobruit et al: clarified the PHPdoc of...

- Patch #232931 by mikey_p, flobruit et al: clarified the PHPdoc of drupal_add_feed() and drupal_add_link().
parent 14ff6537
...@@ -154,6 +154,8 @@ function drupal_get_headers() { ...@@ -154,6 +154,8 @@ function drupal_get_headers() {
/** /**
* Add a feed URL for the current page. * Add a feed URL for the current page.
* *
* This function can be called as long the HTML header hasn't been sent.
*
* @param $url * @param $url
* A url for the feed. * A url for the feed.
* @param $title * @param $title
...@@ -1635,6 +1637,8 @@ function base_path() { ...@@ -1635,6 +1637,8 @@ function base_path() {
/** /**
* Add a <link> tag to the page's HEAD. * Add a <link> tag to the page's HEAD.
*
* This function can be called as long the HTML header hasn't been sent.
*/ */
function drupal_add_link($attributes) { function drupal_add_link($attributes) {
drupal_set_html_head('<link' . drupal_attributes($attributes) . " />\n"); drupal_set_html_head('<link' . drupal_attributes($attributes) . " />\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment