You are here

function nodewords_extra_dc_publisher_prepare in Nodewords: D6 Meta Tags 6

Same name and namespace in other branches
  1. 6.2 nodewords_extra/includes/nodewords_extra.nodewords.tags.inc \nodewords_extra_dc_publisher_prepare()

Set the meta tag content.

File

nodewords_extra/nodewords_extra.module, line 501
Define extra meta tags for Drupal pages.

Code

function nodewords_extra_dc_publisher_prepare(&$tags, $content, $options) {

  // Optional override.
  if (!empty($content['value'])) {
    $tags['dcterms.publisher'] = $content['value'];
  }
  elseif (!empty($options['default']['dcterms.publisher']['value'])) {
    $tags['dcterms.publisher'] = $options['default']['dcterms.publisher']['value'];
  }
}