user.inc in Nodewords: D6 Meta Tags 6.2
Same filename and directory in other branches
Integration file for user.module.
File
includes/user.incView 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
Name | Description |
---|---|
user_nodewords_type_id | Implements hook_nodewords_type_id(). |