Index: nodewords.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nodewords/Attic/nodewords.module,v
retrieving revision 1.57.2.6
diff -u -p -r1.57.2.6 nodewords.module
--- nodewords.module	15 Feb 2008 14:16:56 -0000	1.57.2.6
+++ nodewords.module	3 Dec 2008 08:24:40 -0000
@@ -117,6 +117,35 @@ function nodewords_nodeapi(&$node, $op, 
 }
 
 /**
+ * Implementation of hook_user()
+ */
+function nodewords_user($op, &$edit, &$account, $category = NULL) {
+  switch ($op) {
+    case 'load':
+      $account->nodewords = _nodewords_load('user', $account->uid);
+      break;
+    case 'delete':
+      if (user_access('edit meta tags')) {
+        _nodewords_delete('user', $account->uid);
+      }
+      break;
+    case 'insert':
+    case 'update':
+      if (isset($edit['nodewords']) && user_access('edit meta tags')) {
+        _nodewords_set('user', $account->uid, $edit['nodewords']);
+      }
+      break;
+    case 'form':
+      if (user_access('edit meta tags')) {
+        $tags = _nodewords_load('user', $account->uid);
+        $form['nodewords'] = _nodewords_form('user', $tags);
+        return $form;
+      }
+      break;
+  }
+}
+
+/**
  * Implementation of hook_form_alter().
  */
 function nodewords_form_alter(&$form, $form_state, $form_id) {
@@ -333,6 +362,7 @@ function theme_nodewords_content($tags) 
  *   - 'node' => array of 'nid' of the node
  *   - 'page' => array of 'path' of the displayed page
  *   - 'term' => array of 'tid' of the term
+ *   - 'user' => array of 'uid' of the user
  *   - 'vocabulary' => array of 'vid' of the vocabulary
  *   - 'panels' => array of 'did' of the panel
  *   - 'views' => array of 'vid' of the view
@@ -769,6 +799,9 @@ function _nodewords_detect_type_and_ids(
         return array('type' => 'vocabulary', 'ids' => arg(1));
       }
       break;
+    case 'user':
+      return array('type' => 'user', 'ids' => arg(1));
+      break;
   }
 
   return array('type' => 'none', 'ids' => array());
