? .cosign.info.swp
? .cosign.module.swp
? port_6.patch
? style.patch
Index: cosign.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cosign/cosign.module,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 cosign.module
--- cosign.module	12 Apr 2007 18:45:39 -0000	1.2.2.1
+++ cosign.module	10 Oct 2008 19:52:38 -0000
@@ -1,12 +1,15 @@
 <?php
 // $Id: cosign.module,v 1.2.2.1 2007/04/12 18:45:39 wnorthway Exp $
 
-function cosign_init( ) {
+/**
+ * Implementation of hook_init().
+ */ 
+function cosign_init() {
   global $user;
 
-  if ( $_GET['q'] == 'logout' ) {
+  if ($_GET['q'] == 'logout') {
     watchdog('cosign', "logout: $user->name");
-    cosign_logout( );
+    cosign_logout();
   }
   elseif ($user->uid) {
     // do nothing, user is logged in, and not logging out...
@@ -19,6 +22,10 @@ function cosign_init( ) {
   return true;
 }
 
+
+/**
+ * Implementation of hook_help().
+ */
 function cosign_help($section) {
   switch ($section) {
     case 'admin/modules#description':
@@ -48,10 +55,14 @@ function cosign_logout() {
   drupal_goto('https://' . $_SERVER[ 'SERVER_NAME' ] . '/cgi-bin/logout?'
         . 'https://' . $_SERVER[ 'SERVER_NAME' ] . base_path());
 
-  return true;
+  return TRUE;
 }
 
-function cosign_block($op='list', $delta=0) {
+
+/**
+ * Implementation of hook_block().
+ */
+function cosign_block($op = 'list', $delta = 0, $edit = array()) {
   global $user; 
 
   if ($op == "list") {
@@ -74,10 +85,10 @@ function cosign_enable() {
 
   // copy all user sfrom the user table into the authmap table
   $result = db_query('SELECT uid, name FROM users WHERE uid > 0 AND name NOT IN (SELECT authname FROM authmap)');
-  while($user_info = db_fetch_object($result)) {
+  while ($user_info = db_fetch_object($result)) {
     if (strlen($user_info->name)) {
       db_query(
-        "INSERT INTO {authmap} (authname, uid, module) " . 
+        "INSERT INTO {authmap} (authname, uid, module) ". 
           "VALUES ('%s', %d, '%s')",
         $user_info->name,
         $user_info->uid, 
@@ -92,15 +103,13 @@ function cosign_enable() {
     $realm = $_SERVER[REMOTE_REALM];
   }
 
-  drupal_set_message('Warning: All users mentioned in the user
+  drupal_set_message(t('Warning: All users mentioned in the user
     table have been copied into the authmap table. This
     means that any pre-existing local users have been
     converted to <b>user@' .$realm . '</b>.  This may cause a
     mis-identification, and potential security issue if
     you had a user registered locally, and that name is
-    mapped to someone else when using cosign.', 'status');
+    mapped to someone else when using cosign.'), 'status'));
 
-  return true;
+  return TRUE;
 }
-
-?>
