Selaa lähdekoodia

Misnamed API function

Stephen Ficklin 11 vuotta sitten
vanhempi
commit
62eca2aeb4

+ 1 - 1
tripal_cv/api/tripal_cv.api.inc

@@ -1075,7 +1075,7 @@ function tripal_get_default_cv($table, $field) {
  *   An array(cvterm_id => name)
  *   for each cvterm in the chado cvterm table where cv_id=that supplied
  */
-function tripal_get_cvterm_default_options($table, $field, $field_desc) {
+function tripal_get_cvterm_default_select_options($table, $field, $field_desc) {
   
   $default_cv = tripal_get_default_cv($table, $field);
   $options = array();

+ 1 - 1
tripal_stock/includes/tripal_stock.chado_node.inc

@@ -240,7 +240,7 @@ function chado_stock_form($node, $form_state) {
     '#title' =>  t('Stock Details')
   );
 
-  $type_options = tripal_get_cvterm_default_options('stock', 'type_id', 'stock types');
+  $type_options = tripal_get_cvterm_default_select_options('stock', 'type_id', 'stock types');
   $type_options[0] = 'Select a Type';
   
   $form['details']['type_id'] = array(