You are here

function humanstxt_preprocess_html in Humans.txt 7

Preprocess function to display the <head> link if the user has selected so.

File

./humanstxt.module, line 91
humanstxt module file.

Code

function humanstxt_preprocess_html(&$variables) {
  if (variable_get('humanstxt_display_link', FALSE)) {
    drupal_add_html_head_link(array(
      'type' => 'text/plain',
      'rel' => 'author',
      'href' => url('humans.txt', array(
        'absolute' => TRUE,
      )),
    ), TRUE);
  }
}