function hook_nodewords_default_values_alter in Nodewords: D6 Meta Tags 6.2
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.
File
- ./
nodewords.api.php, line 41 - . Nodewords hooks.
Code
function hook_nodewords_default_values_alter(&$values, $parameters) {
if (!empty($values['abstract']) && $parameters['type'] == NODEWORDS_TYPE_USER) {
$values['abstract'] = t('User profile');
}
}