Browse Source

Tripal Contact adheres to Drupal coding standards

Pubudu Basnayaka 12 years ago
parent
commit
26a385d35d

+ 2 - 2
tripal_contact/tripal_contact.api.inc

@@ -5,9 +5,9 @@
  * @todo Add file header description
  */
 
-/****************************************************************************
+/**
  * @section Chado Table Descriptions
- ****************************************************************************/
+ */
 
  /**
  * Implements hook_chado_contact_schema()

+ 9 - 9
tripal_contact/tripal_contact.module

@@ -3,20 +3,20 @@
 /**
  *  @file
  * This file contains the basic functions needed for this drupal module.
- * The drupal tripal_contact module maps directly to the chado X module. 
+ * The drupal tripal_contact module maps directly to the chado X module.
  *
- * For documentation regarding the Chado X module: 
+ * For documentation regarding the Chado X module:
  * @see http://gmod.org/wiki/Chado_General_Module
  */
 
 /**
  * @defgroup tripal_contact Contact Module
  * @{
- * Currently this module only provides support for integration with Drupal 
- * views and some support for querying using the Tripal Core API. 
+ * Currently this module only provides support for integration with Drupal
+ * views and some support for querying using the Tripal Core API.
  *
- * This module needs further development to support full management of 
- * contact information within Chado, and full definitions for foreign 
+ * This module needs further development to support full management of
+ * contact information within Chado, and full definitions for foreign
  * key relationships in Chado.
  * @}
  * @ingroup tripal_modules
@@ -31,9 +31,9 @@ require('tripal_contact.api.inc');
  *  views integration code is
  *
  * @ingroup tripal_contact
- */ 
+ */
 function tripal_contact_views_api() {
-   return array(
+  return array(
       'api' => 2.0,
-   );
+  );
 }

+ 12 - 12
tripal_contact/tripal_contact.views.inc

@@ -6,17 +6,17 @@
  *  chado/tripal_contact tables. Supplementary functions can be found in
  *  ./views/
  *
- *  Documentation on views integration can be found at 
+ *  Documentation on views integration can be found at
  *  http://views2.logrus.com/doc/html/index.html.
  */
- 
+
 /*************************************************************************
  * Implements hook_views_data()
  * Purpose: Describe chado/tripal tables & fields to views
  *
  * @return: a data array which follows the structure outlined in the
  *   views2 documentation for this hook. Essentially, it's an array of table
- *   definitions keyed by chado/tripal table name. Each table definition 
+ *   definitions keyed by chado/tripal table name. Each table definition
  *   includes basic details about the table, fields in that table and
  *   relationships between that table and others (joins)
  *
@@ -26,14 +26,14 @@ function tripal_contact_views_data()  {
   $data = array();
 
   if (module_exists('tripal_views')) {
-    
+
     // Base Table: contact
     $table_name = 'contact';
     if (!tripal_views_is_integrated($tablename, 10)) {
       $table_integration_array = tripal_views_get_integration_array_for_chado_table($tablename, TRUE);
       tripal_views_integration_add_entry($table_integration_array);
     }
-      
+
     // Additional tables
     $tables = array(
       'contact_relationship',
@@ -45,14 +45,14 @@ function tripal_contact_views_data()  {
       }
     }
   }
-    
+
   return $data;
 }
 
 /*************************************************************************
  * Implements hook_views_handlers()
  * Purpose: Register all custom handlers with views
- *   where a handler describes either "the type of field", 
+ *   where a handler describes either "the type of field",
  *   "how a field should be filtered", "how a field should be sorted"
  *
  * @return: An array of handler definitions
@@ -60,12 +60,12 @@ function tripal_contact_views_data()  {
  * @ingroup tripal_contact
  */
 function tripal_contact_views_handlers() {
- return array(
+  return array(
    'info' => array(
      'path' => drupal_get_path('module', 'tripal_contact') . '/views/handlers',
-   ),
+  ),
    'handlers' => array(
 
-   ),
- );
-}
+  ),
+  );
+}