فهرست منبع

Getting field instance settings from widgetForm

Chun-Huai Cheng 8 سال پیش
والد
کامیت
71ea3b6048
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      tripal_chado/includes/TripalFields/chado_linker__relationship.inc

+ 6 - 1
tripal_chado/includes/TripalFields/chado_linker__relationship.inc

@@ -118,11 +118,16 @@ class chado_linker__relationship extends TripalField {
    * @see TripalField::widgetForm()
    */
   public function widgetForm(&$widget, &$form, &$form_state, $langcode, $items, $delta, $element) {
-
+    
     $field_name = $this->field['field_name'];
     $field_type = $this->field['type'];
     $field_table = $this->field['settings']['chado_table'];
     $field_column = $this->field['settings']['chado_column'];
+    
+    // Get the instance settings
+    $instance = $this->instance;
+    $settings = $instance['settings']['relationships'];
+    //dpm($settings);
 
     // Get the FK column that links to the base table.
     $chado_table = $this->field['settings']['chado_table'];