You are here

function agls_preprocess_html in AGLS Metadata 7

Implements hook_preprocess_html().

File

./agls.module, line 19
Allows users and system to add AGLS meta tags to Drupal pages.

Code

function agls_preprocess_html(&$variables) {
  $element = array(
    '#tag' => 'link',
    '#attributes' => array(
      'rel' => 'schema.AGLSTERMS',
      'href' => 'http://www.agls.gov.au/agls/terms/',
    ),
  );
  drupal_add_html_head($element, 'agls_schema');
  $variables['rdf_namespaces'] .= "\n  xmlns:AGLSTERMS=\"http://www.agls.gov.au/agls/terms/\"";
}