You are here

function hook_metatags_type in Nodewords: D6 Meta Tags 6.3

Determinates the type of the object associated with the viewed page.

Parameters

&$result: the array used to write the result.

$arg: the array as obtained from arg().

7 functions implement hook_metatags_type()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

forum_metatags_type in includes/forum.inc
Implements hook_metatags_type().
image_metatags_type in includes/image.inc
Implements hook_metatags_type().
node_metatags_type in includes/node.inc
Implements hook_metatags_type().
taxonomy_menu_metatags_type in includes/taxonomy_menu.inc
Implements hook_metatags_type().
taxonomy_metatags_type in includes/taxonomy.inc
Implements hook_metatags_type().

... See full list

1 invocation of hook_metatags_type()
_nodewords_load_hook_files in ./nodewords.module
Load the files in the directory "includes" basing on the enabled modules.

File

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

Code

function hook_metatags_type(&$result, $arg) {
  if ($arg[0] == 'user') {

    // User page paths: user/$uid.
    if (isset($arg[1]) && is_numeric($arg[1])) {
      $result['type'] = NODEWORDS_TYPE_USER;
      $result['id'] = $arg[1];
    }
  }
}