From 8efe1c74db02c7d169ac581ab413a97fd5041368 Mon Sep 17 00:00:00 2001
From: Marco Villegas <marvil07@gmail.com>
Date: Sat, 2 Apr 2011 13:55:41 -0500
Subject: [PATCH] Issue #1096692: Remove author information from wikipages, change date to most recent edit.

---
 groupsorg.module |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/groupsorg.module b/groupsorg.module
index a8eb055..e242626 100644
--- a/groupsorg.module
+++ b/groupsorg.module
@@ -384,4 +384,17 @@ function groupsorg_views_api() {
     'path' => drupal_get_path('module', 'groupsorg'),
     //'path' => drupal_get_path('module', 'groupsorg') . '/includes',
   );
-}
\ No newline at end of file
+}
+
+/**
+ * Custom variables to node.tpl.php
+ */
+function groupsorg_preprocess_node(&$variables) {
+  // wiki pages
+  if ($variables['node']->type == 'wikipage') {
+    $variables['user_picture'] = '';
+    $last_author = theme('username', user_load($variables['node']->revision_uid));
+    $last_edition = $variables['node']->revision_timestamp;
+    $variables['submitted'] = t('Last updated by !username on @date', array('!username' => $last_author, '@date' => format_date($last_edition)));
+  }
+}
-- 
1.7.4.1

