Forráskód Böngészése

Changed unable to integrate messages to watchdog instead of drupal_set_message so that not all tables in chado need to be integrated

Lacey Sanderson 12 éve
szülő
commit
05a027b35e

+ 1 - 1
tripal_views/tripal_views.api.inc

@@ -405,7 +405,7 @@ function tripal_views_get_integration_array_for_chado_table($table_name, $base_t
   // Add fields
   if (!isset($schema['fields'])) {
     $schema['fields'] = array();
-    drupal_set_message(t('There are no fields defined for %table in the Chado Schema API.', array('%table' => $table_name)), 'warning');
+    watchdog('tripal_views', 'There are no fields defined for %table in the Chado Schema API.', array('%table' => $table_name), WATCHDOG_WARNING);
     return FALSE;
   }
   foreach ($schema['fields'] as $field_name => $field_schema) {

+ 1 - 1
tripal_views/tripal_views.views.inc

@@ -498,7 +498,7 @@ function tripal_views_views_data() {
       $fields = $table_desc['fields'];
       if (!is_array($fields)) {
         $fields = array();
-        drupal_set_message(t('No fields were described for this table (%table) through the Tripal Schema API.', array('%table' => $base_table)), 'error');
+        watchdog('tripal_views', 'No fields were described for this table (%table) through the Tripal Schema API.', array('%table' => $base_table), WATCHDOG_ERROR);
       }
       foreach ($fields as $column => $attrs) {
         $base_fields[$column] = array(