You are here

function hook_metatags_default_values_alter in Nodewords: D6 Meta Tags 6.3

Alters the default meta tags values.

Parameters

&$values: The array of default meta tags values.

$parameters: An array of parameters. The currently defined are:

  • type - the type of object for the page to which the meta tags are associated.
  • id - The ID for the object associated with the page.
  • phase - when it's 'pre_load', the hook is called before the meta tags loaded from the database.
1 invocation of hook_metatags_default_values_alter()
_nodewords_tag_value in ./nodewords.module

File

./nodewords.api.php, line 60
. Nodewords hooks.

Code

function hook_metatags_default_values_alter(&$values, $parameters) {
  if (!empty($values['abstract']) && $parameters['type'] == NODEWORDS_TYPE_USER) {
    $values['abstract'] = t('User profile');
  }
}