Parcourir la source

Tripal Library adheres to Drupal coding standards

Pubudu Basnayaka il y a 12 ans
Parent
commit
62faf07c13

+ 4 - 0
tripal_library/tripal_library.api.inc

@@ -1,4 +1,8 @@
 <?php
+/**
+ * @file
+ * @todo Add file header description
+ */
 
 /**
  * @defgroup tripal_library_api Library Module API

+ 4 - 0
tripal_library/tripal_library.install

@@ -1,4 +1,8 @@
 <?php
+/**
+ * @file
+ * @todo Add file header description
+ */
 
 /**
 *  Implementation of hook_install();

+ 1 - 1
tripal_library/tripal_library.module

@@ -1695,7 +1695,7 @@ function tripal_library_cleanup($dummy = NULL, $job_id = NULL) {
       }
       $node = db_fetch_object(db_query($nsql, $nid->nid));
       if (!$node) {
-         db_query("DELETE FROM {chado_library} WHERE nid = $nid->nid");
+         db_query("DELETE FROM {chado_library} WHERE nid = '%nid'", $nid->nid);
          $message = "chado_library missing node.... DELETING: $nid->nid\n";
          watchdog('tripal_library', $message, array(), WATCHDOG_WARNING);
       }

+ 4 - 0
tripal_library/views/handlers/views_handler_field_computed_library_nid.inc

@@ -1,4 +1,8 @@
 <?php
+/**
+ * @file
+ * @todo Add file header description
+ */
 
 class views_handler_field_computed_library_nid extends views_handler_field_numeric {
   function construct() {