You are here

user.inc in Nodewords: D6 Meta Tags 6.2

Same filename and directory in other branches
  1. 6.3 includes/user.inc
  2. 6 includes/user.inc

Integration file for user.module.

File

includes/user.inc
View source
<?php

/**
 * @file
 * Integration file for user.module.
 */

/**
 * Implements hook_nodewords_type_id().
 */
function user_nodewords_type_id(&$result, $arg) {
  if ($arg[0] == 'user') {
    if (!isset($arg[1])) {
      $result['type'] = NODEWORDS_TYPE_USER;
      $result['id'] = $GLOBALS['user']->uid;
    }
    elseif (is_numeric($arg[1])) {
      $result['type'] = NODEWORDS_TYPE_USER;
      $result['id'] = $arg[1];
    }
  }
}

Functions