Index: l10n_groups/l10n_groups.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_groups/Attic/l10n_groups.install,v
retrieving revision 1.1.2.1.2.2
diff -u -p -r1.1.2.1.2.2 l10n_groups.install
--- l10n_groups/l10n_groups.install	15 Oct 2008 15:25:05 -0000	1.1.2.1.2.2
+++ l10n_groups/l10n_groups.install	11 Sep 2009 16:19:47 -0000
@@ -9,7 +9,7 @@
  * Implementation of hook_install().
  */
 function l10n_groups_install() {
-  drupal_install_schema('l10n_groups');  
+  drupal_install_schema('l10n_groups');
   // Designate our node type as an OG group node type.
   variable_set('og_content_type_usage_l10n_group', 'group');
 }
@@ -22,39 +22,38 @@ function l10n_groups_uninstall() {
 }
 
 /**
- * Implementation of hook_install().
+ * Implementation of hook_schema().
  *
  * With this module, the translations are maintained by communities,
  * who share a common space based on organic groups. We need to store
  * their permission model and language association.
  */
 function l10n_groups_schema() {
-  $t = get_t();
   $schema = array();
   $schema['l10n_groups_group'] = array(
-    'description' => $t('Organic groups mapper for the localization server. Each language team is a group.'),
+    'description' => 'Organic groups mapper for the localization server. Each language team is a group.',
     'fields' => array(
       'nid' => array(
-        'description' => $t('References {node}.nid, pointing to the organic group node for this translation group.'),
+        'description' => 'References {node}.nid, pointing to the organic group node for this translation group.',
         'type' => 'int',
         'not null' => TRUE,
-        'disp-width' => '11'
+        'disp-width' => '11',
       ),
       'language' => array(
-        'description' => $t('References {language}.language, pointing to the language of this translation group.'),
+        'description' => 'References {language}.language, pointing to the language of this translation group.',
         'type' => 'varchar',
         'length' => '12',
-        'not null' => TRUE
+        'not null' => TRUE,
       ),
       'model' => array(
-        'description' => $t('Permission model for this translation group. Can be L10N_MODEL_OPEN or L10N_MODEL_CONTROLLED.'),
+        'description' => 'Permission model for this translation group. Can be L10N_MODEL_OPEN or L10N_MODEL_CONTROLLED.',
         'type' => 'int',
         'not null' => TRUE,
-        'disp-width' => '11'
+        'disp-width' => '11',
       )
     ),
     'indexes' => array(
-      'l10n_groups_group_nid' => array('nid')
+      'l10n_groups_group_nid' => array('nid'),
     ),
   );
   return $schema;
Index: l10n_groups/l10n_groups.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_groups/Attic/l10n_groups.module,v
retrieving revision 1.1.2.4.2.5
diff -u -p -r1.1.2.4.2.5 l10n_groups.module
--- l10n_groups/l10n_groups.module	19 Aug 2009 21:55:54 -0000	1.1.2.4.2.5
+++ l10n_groups/l10n_groups.module	11 Sep 2009 16:26:01 -0000
@@ -35,8 +35,8 @@ function l10n_groups_perm() {
 }
 
 /**
- * Implemenation of hook_form_alter().
- * 
+ * Implementation of hook_form_alter().
+ *
  * Take care of the one translation group per language limitation.
  *
  * @todo
@@ -73,8 +73,8 @@ function l10n_groups_init() {
 /**
  * Implementation of hook_node_info().
  *
- * We expose one node type to tie into the organic groups system, and maintain a list
- * of localization community related ones with their permission models.
+ * We expose one node type to tie into the organic groups system, and maintain a
+ * list of localization community related ones with their permission models.
  */
 function l10n_groups_node_info() {
   return array(
@@ -82,14 +82,14 @@ function l10n_groups_node_info() {
       'name' => t('Translation group'),
       'module' => 'l10n_groups',
       'description' => t('A language community around Drupal project translations.'),
-    )
+    ),
   );
 }
 
 /**
  * Implementation of hook_insert().
  */
-function l10n_groups_insert(&$node) {
+function l10n_groups_insert($node) {
   db_query("INSERT INTO {l10n_groups_group} (nid, language, model) VALUES (%d, '%s', %d)", $node->nid, $node->l10n_group_language, $node->l10n_group_model);
 }
 
@@ -113,9 +113,9 @@ function l10n_groups_update($node) {
 }
 
 /**
- * Implemenation of hook_load().
+ * Implementation of hook_load().
  */
-function l10n_groups_load(&$node) {
+function l10n_groups_load($node) {
   return db_fetch_object(db_query('SELECT language AS l10n_group_language, model as l10n_group_model FROM {l10n_groups_group} WHERE nid = %d', $node->nid));
 }
 
@@ -132,28 +132,28 @@ function l10n_groups_access($op, $node, 
       // Let everyone see localization groups who can access l10n_community.
       return user_access('access localization community', $account);
       break;
-      
+
     case 'create':
       return user_access('create localization group', $account);
       break;
-      
+
     case 'update':
       // Update $op to 'edit' so we can reuse in permission name.
       $op = 'edit';
       // Intentionally no break.
-    
+
     case 'delete':
       return user_access($op .' any localization group', $account) || (user_access($op .' own localization group', $account) && ($account->uid == $node->uid));
       break;
   }
-  
+
   return FALSE;
 }
 
 /**
  * Implementation of hook_form().
  */
-function l10n_groups_form(&$node) {
+function l10n_groups_form($node, $form_state) {
   $form = array();
 
   $form['title'] = array(
@@ -162,7 +162,7 @@ function l10n_groups_form(&$node) {
     '#description' => t('Name of the translation group.'),
     '#default_value' => isset($node->title) ? $node->title : '',
     '#weight' => -10,
-    '#required' => TRUE
+    '#required' => TRUE,
   );
   $languages = l10n_community_get_languages('name');
 
@@ -196,7 +196,7 @@ function l10n_groups_form(&$node) {
       '#description' => t('The language managed by this group. Languages not shown here are either not active on the site, or already have a translation group.'),
       '#options' => $languages,
       '#weight' => -5,
-      '#required' => TRUE
+      '#required' => TRUE,
     );
   }
   $form['l10n_group_model'] = array(
@@ -205,10 +205,10 @@ function l10n_groups_form(&$node) {
     '#description' => t('Whether different types of group members have different permissions.'),
     '#default_value' => isset($node->l10n_group_model) ? $node->l10n_group_model : L10N_MODEL_OPEN,
     '#options' => array(
-      L10N_MODEL_OPEN => t('Open: everybody is equal, all members can suggest and approve translations.'), 
+      L10N_MODEL_OPEN => t('Open: everybody is equal, all members can suggest and approve translations.'),
       L10N_MODEL_CONTROLLED => t('Controlled: members can only suggest translations, group administrators can approve them.'),
     ),
-    '#weight' => -3
+    '#weight' => -3,
   );
   $form['body'] = array(
     '#type' => 'textarea',
@@ -232,12 +232,12 @@ function l10n_groups_form(&$node) {
  */
 function l10n_groups_block_help($perm, $langcode = NULL) {
   global $user;
-  
+
   // Only return anything if we have a language group code.
   if (!isset($langcode)) {
     return '';
   }
-  
+
   $groups = l10n_groups_get_groups();
   $permission_help = '';
   switch ($perm) {
@@ -263,7 +263,7 @@ function l10n_groups_block_help($perm, $
  */
 function l10n_groups_get_groups() {
   static $groups = NULL;
-  
+
   if (!isset($groups)) {
     $groups = array();
     $result = db_query('SELECT nid, language, model FROM {l10n_groups_group}');
@@ -271,7 +271,7 @@ function l10n_groups_get_groups() {
       $groups[$group->language] = $group;
     }
   }
-  
+
   return $groups;
 }
 
@@ -299,9 +299,9 @@ function l10n_groups_get_permission(&$pe
       if (!empty($account->og_groups) and !empty($account->og_groups[$group->nid])) {
         if (!empty($account->og_groups[$group->nid]['is_admin'])) {
           // Administrators of groups have all permissions in the group.
-          $permission = L10N_PERM_ALL; 
+          $permission = L10N_PERM_ALL;
         }
-        else if ($account->og_groups[$group->nid]['is_active']) {
+        elseif ($account->og_groups[$group->nid]['is_active']) {
           // Members in the group have a permission depending on the model used.
           $permission = ($group->model == L10N_MODEL_OPEN ? L10N_PERM_ALL : L10N_PERM_SUGGEST);
         }
