Quellcode durchsuchen

make all module implemented views integration have a priority of 9

Lacey Sanderson vor 12 Jahren
Ursprung
Commit
81115cedcb
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      tripal_views/tripal_views.api.inc

+ 2 - 2
tripal_views/tripal_views.api.inc

@@ -371,7 +371,7 @@ function tripal_views_integration_remove_entry_by_setup_id($setup_id) {
  *   The tripal views integration array which is the parameter for
  *   tripal_views_integration_add_entry($defn_array)
  */
-function tripal_views_get_integration_array_for_chado_table($table_name, $base_table = TRUE) {
+function tripal_views_get_integration_array_for_chado_table($table_name, $base_table = TRUE, $priority = 9) {
 
   // Get the schema for this table (via the chado schema api)
   $schema = module_invoke_all('chado_' . $table_name . '_schema');
@@ -382,7 +382,7 @@ function tripal_views_get_integration_array_for_chado_table($table_name, $base_t
     'type' => 'chado',
     'name' => 'Chado ' . ucwords(str_replace('_', ' ', $table_name)),
     'description' => (!empty($schema['description'])) ? $schema['description'] : ' ',
-    'priority' => 10,
+    'priority' => $priority,
     'base_table' => $base_table,
     'fields' => array(),
   );