cvs diff: Diffing .
? .project
Index: dropbox.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/dropbox/dropbox.install,v
retrieving revision 1.5
diff -u -p -r1.5 dropbox.install
--- dropbox.install	30 Sep 2009 19:39:52 -0000	1.5
+++ dropbox.install	31 Oct 2009 03:08:50 -0000
@@ -2,7 +2,12 @@
 // $Id: dropbox.install,v 1.5 2009/09/30 19:39:52 deviantintegral Exp $
 
 /**
- * Implementation of hook_install()
+ * @file
+ * Install hooks for the Dropbox module.
+ */
+
+/**
+ * Implementation of hook_install().
  */
 function dropbox_install() {
   $ret = array();
@@ -14,15 +19,15 @@ function dropbox_install() {
     }
   }
   if ($install_pass) {
-    drupal_set_message('Installed the Dropbox module successfully!');
+    drupal_set_message(st('Installed the Dropbox module successfully!'));
   }
   else {
-    drupal_set_message(t('The installation of the Dropbox module was unsuccessful.'), 'error');
+    drupal_set_message(st('The installation of the Dropbox module was unsuccessful.'), 'error');
   }
 }
 
 /**
- * Implementation of hook_uninstall()
+ * Implementation of hook_uninstall().
  */
 function dropbox_uninstall() {
   drupal_uninstall_schema('dropbox');
@@ -30,7 +35,7 @@ function dropbox_uninstall() {
 }
 
 /**
- * Implementation of hook_schema()
+ * Implementation of hook_schema().
  *
  * @return
  *   The schema array for the Dropbox module.
@@ -54,7 +59,7 @@ function dropbox_schema() {
 }
 
 /**
- * Implementation of hook_requirements()
+ * Implementation of hook_requirements().
  */
 function dropbox_requirements($phase) {
   switch ($phase) {
@@ -100,7 +105,7 @@ function _dropbox_requirements_runtime()
   // Ensure that the cURL PHP extension is installed.
   if (!in_array('curl', get_loaded_extensions())) {
     $requirements['curl']['description'] = t('The PHP cURL extension is not installed. This extension is required for Dropbox Integration to function. Please install this extension, or contact your hosting provider to have it installed.');
-    $requirements['curl']['value'] = t ('Not installed');
+    $requirements['curl']['value'] = t('Not installed');
     $requirements['curl']['severity'] = REQUIREMENT_ERROR;
   }
   return $requirements;
Index: dropbox.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/dropbox/dropbox.module,v
retrieving revision 1.9
diff -u -p -r1.9 dropbox.module
--- dropbox.module	2 Aug 2009 01:11:58 -0000	1.9
+++ dropbox.module	31 Oct 2009 03:08:51 -0000
@@ -2,7 +2,7 @@
 // $Id: dropbox.module,v 1.9 2009/08/02 01:11:58 deviantintegral Exp $
 
 /**
- * Implementation of hook_menu()
+ * Implementation of hook_menu().
  *
  * @return
  *   The menu items to create.
@@ -21,7 +21,7 @@ function dropbox_menu() {
 }
 
 /**
- * Implementation of hook_boot()
+ * Implementation of hook_boot().
  *
  * We need to disable the cache so that when anonymous users are blocked via
  * flood control they don't get the old form.
@@ -34,7 +34,7 @@ function dropbox_boot() {
 }
 
 /**
- * Implementation of hook_perm()
+ * Implementation of hook_perm().
  *
  * The following permissions are currently defined:
  * - Configure Dropbox Account allows users to access Dropbox functionality
@@ -53,7 +53,7 @@ function dropbox_perm() {
 }
 
 /**
- * Implementation of hook_user()
+ * Implementation of hook_user().
  */
 function dropbox_user($op, &$edit, &$account, $category = NULL) {
   switch ($op) {
@@ -90,7 +90,7 @@ function dropbox_user($op, &$edit, &$acc
       if (!empty($edit['dropbox']['flood']) && !is_numeric($edit['dropbox']['flood'])) {
         form_set_error('dropbox][flood', t('Please specify the number of files an anonymous user can send per hour as a number.'));
       }
-      else if(empty($edit['dropbox']['flood'])) {
+      elseif (empty($edit['dropbox']['flood'])) {
         $edit['dropbox']['flood'] = variable_get('dropbox_flood_anonymous', 3);
       }
       if (empty($edit['dropbox']['mail'])) {
@@ -312,7 +312,7 @@ function dropbox_send_form_submit($form,
       $params['mail'] = strtr($form_state['values']['mail'], "@", "-");
       drupal_mail('dropbox', 'send_notify', $destination_user->name . ' <' . $destination_user->mail . '>', user_preferred_language($destination_user), $params, $form_state['values']['mail']);
       drupal_set_message(t('%filename has successfully been sent.', array('%filename' => $file->filename)));
-      watchdog('dropbox', t("%from sent a file to %to's Dropbox account.", array('%from' => isset($user->name) ? $user->name : $params['name'], '%to' => $destination_user->name)));
+      watchdog('dropbox', "%from sent a file to %to's Dropbox account.", array('%from' => isset($user->name) ? $user->name : $params['name'], '%to' => $destination_user->name));
       file_delete($file->filepath);
     }
     else {
@@ -325,7 +325,7 @@ function dropbox_send_form_submit($form,
 }
 
 /**
- * Implementation of hook_mail()
+ * Implementation of hook_mail().
  */
 function dropbox_mail($key, &$message, $params) {
   $language = $message['language'];
