You are here

function nodewords_og_tag_prepare in Nodewords: D6 Meta Tags 6

Load a requested meta tag, first checking if a default value exists. This is called from an individual meta tag's "prepare" function, so has all of the same data available.

Parameters

$tag_name The tag to check.:

$tags The meta tags that have been processed so far.:

$content Details of the piece of content currently being processed.:

$options Settings that have been defined for this tag.:

22 calls to nodewords_og_tag_prepare()
nodewords_og_fb_admins_prepare in nodewords_og/nodewords_og.module
nodewords_og_fb_app_id_prepare in nodewords_og/nodewords_og.module
nodewords_og_og_country_name_prepare in nodewords_og/nodewords_og.module
nodewords_og_og_email_prepare in nodewords_og/nodewords_og.module
nodewords_og_og_fax_number_prepare in nodewords_og/nodewords_og.module

... See full list

File

nodewords_og/nodewords_og.module, line 247
OpenGraph support for Nodewords.

Code

function nodewords_og_tag_prepare($tag_name, &$tags, $content, $options) {

  // Load the default setting.
  if (!empty($options['default'][$tag_name]['value'])) {
    $tags[$tag_name] = $options['default'][$tag_name]['value'];
  }

  // Load the per-object value & possibly override the default.
  if (!empty($content['value'])) {
    $tags[$tag_name] = $content['value'];
  }
}