Index: community_tags.ajax.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/community_tags/community_tags.ajax.inc,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 community_tags.ajax.inc
--- community_tags.ajax.inc	19 Jul 2008 17:13:54 -0000	1.1.2.1
+++ community_tags.ajax.inc	19 Jul 2008 18:15:47 -0000
@@ -2,7 +2,8 @@
 // $Id: community_tags.ajax.inc,v 1.1.2.1 2008/07/19 17:13:54 herc Exp $
 
 /**
- * @file community_tags.ajax.inc
+ * @file
+ * community_tags.ajax.inc
  *
  * Handles the server side Ajax interactions of Community Tags.
  *
Index: community_tags.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/community_tags/community_tags.module,v
retrieving revision 1.37.2.2
diff -u -r1.37.2.2 community_tags.module
--- community_tags.module	19 Jul 2008 17:36:30 -0000	1.37.2.2
+++ community_tags.module	19 Jul 2008 18:15:10 -0000
@@ -2,6 +2,11 @@
 // $Id: community_tags.module,v 1.37.2.2 2008/07/19 17:36:30 herc Exp $
 
 /**
+ * @file
+ * Implements community tagging of nodes using a specific vocabulary for Drupal v6.x
+ */
+
+/**
  * Display modes.
  */
 define('COMMUNITY_TAGS_MODE_BLOCK', 0);
@@ -11,8 +16,8 @@
 /**
  * Implementation of hook_help().
  */
-function community_tags_help($section) {
-  switch ($section) {
+function community_tags_help($path, $arg) {
+  switch ($path) {
     case 'admin/settings/community-tags':
       return t('To set up community tagging, you must first <a href="@taxonomy">create a normal free tagged vocabulary</a>. Then activate community tagging on such a vocabulary below, and set the <a href="@workflow">workflow options</a> for node types to control how users can tag nodes.', array('@taxonomy' => url('admin/content/taxonomy'), '@workflow' => url('admin/content/types')));
       break;
@@ -42,7 +47,7 @@
 
   $items['admin/settings/community-tags'] = array(
     'title' => 'Community tags',
-    'description' => t('Configure community tagging.'),
+    'description' => 'Configure community tagging.',
     'page callback' => 'drupal_get_form',
     'page arguments' => array('community_tags_settings'),
     'access arguments' => array('administer site configuration'),
@@ -134,7 +139,7 @@
     case 'view':
       if (user_access('access content') && user_access('tag content')) {
         if (arg(0) == 'node' && is_numeric(arg(1)) && (arg(2) == '' || arg(2) == 'view')) {
-          $node = node_load(arg(1));
+          $node = menu_get_object();
           if ($node && variable_get('community_tags_display_'. $node->type, COMMUNITY_TAGS_MODE_TAB) == COMMUNITY_TAGS_MODE_BLOCK) {
             $block['subject'] = t('Tag this');
             $block['content'] = community_tags_node_view($node, TRUE);
@@ -221,7 +226,7 @@
       COMMUNITY_TAGS_MODE_INLINE => t('Inline'),
     );
     $form['workflow']['community_tags_display'] = array(
-      '#type' => 'radios', 	
+      '#type' => 'radios',
       '#title' => t('Community tagging form'),
       '#default_value' => variable_get('community_tags_display_'. $form['#node_type']->type, COMMUNITY_TAGS_MODE_TAB),
       '#options' => $modes,
@@ -301,7 +306,7 @@
         }
 
         // If there was an existing tag by this user, load that data.
-        $tag_node = new StdClass();
+        $tag_node = new stdClass();
         $tag_node->tid = $typed_term_tid;
         $tag_node->nid = $nid;
         $tag_node->uid = $uid;
@@ -458,14 +463,14 @@
 
   if (!count($tags)) {
     // User has not yet added tags to this node yet. Show form.
-    $output .= drupal_get_form('community_tags_form', array('node'=> $node, 'cloud' => $cloud, 'nid' => $node->nid, 'vid' => $vid, 'tags' => NULL, 'inline' => $inline));
+    $output .= drupal_get_form('community_tags_form', array('node' => $node, 'cloud' => $cloud, 'nid' => $node->nid, 'vid' => $vid, 'tags' => NULL, 'inline' => $inline));
   } 
   elseif (user_access('edit own tags')) {
     // User has already tagged this node, but can edit their tags. Show form
     // with the user's tags pre-populated.
     $names = community_tags_flatten($tags);
     $tags = taxonomy_implode_tags($tags);
-    $output .= drupal_get_form('community_tags_form', array('node'=> $node, 'cloud' => $cloud, 'nid' => $node->nid, 'vid' => $vid, 'tags' => $tags, 'inline' => $inline));
+    $output .= drupal_get_form('community_tags_form', array('node' => $node, 'cloud' => $cloud, 'nid' => $node->nid, 'vid' => $vid, 'tags' => $tags, 'inline' => $inline));
   }
   else {
     // Sorry, no more adding tags for you!
Index: community_tags.pages.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/community_tags/community_tags.pages.inc,v
retrieving revision 1.1
diff -u -r1.1 community_tags.pages.inc
--- community_tags.pages.inc	18 Jul 2008 03:32:55 -0000	1.1
+++ community_tags.pages.inc	19 Jul 2008 18:18:19 -0000
@@ -2,7 +2,8 @@
 // $Id: community_tags.pages.inc,v 1.1 2008/07/18 03:32:55 herc Exp $
 
 /**
- * @file community_tags.pages.inc
+ * @file
+ * community_tags.pages.inc
  *
  * Page handlers of Community Tags.
  *
@@ -82,10 +83,9 @@
  */
 function community_tags_form_submit($form, &$form_state) {
   global $user;
-  $form_values = $form_state['values']; 
-  community_tags_taxonomy_node_save($form_values['node'], array('tags' => array($form_values['vid'] => $form_values['tags'])), FALSE, $user->uid);
+  community_tags_taxonomy_node_save($form_state['values']['node'], array('tags' => array($form_state['values']['vid'] => $form_state['values']['tags'])), FALSE, $user->uid);
 
-  $form_state['redirect'] = 'node/'. $form_values['nid']; 
+  $form_state['redirect'] = 'node/'. $form_state['values']['nid']; 
 }
 
 /**

