You are here

function hook_nodewords_type_id in Nodewords: D6 Meta Tags 6.2

Same name and namespace in other branches
  1. 6 nodewords.api.php \hook_nodewords_type_id()

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().

10 functions implement hook_nodewords_type_id()

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

blog_nodewords_type_id in includes/blog.inc
Implements hook_nodewords_type_id().
forum_nodewords_type_id in includes/forum.inc
Implements hook_nodewords_type_id().
image_nodewords_type_id in includes/image.inc
Implements hook_nodewords_type_id().
nodewords_custom_pages_nodewords_type_id in nodewords_custom_pages/includes/nodewords_custom_pages.nodewords.hooks.inc
Implements hook_nodewords_type_id().
node_nodewords_type_id in includes/node.inc
Implements hook_nodewords_type_id().

... See full list

3 invocations of hook_nodewords_type_id()
nodewords_detect_type_id in ./nodewords.module
Try to guess the type and the ID associated with the viewed page.
nodewords_replace_tokens in ./nodewords.module
_nodewords_load_hook_files in ./nodewords.module
Load the files in the directory "includes" based on enabled modules.

File

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

Code

function hook_nodewords_type_id(&$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];
    }
  }
}