|
@@ -10,7 +10,9 @@ class chado_linker__relationship extends TripalField {
|
|
|
'description' => t('Relationships between records.'),
|
|
|
'default_widget' => 'chado_linker__relationship_widget',
|
|
|
'default_formatter' => 'chado_linker__relationship_formatter',
|
|
|
- 'settings' => array(),
|
|
|
+ 'settings' => array(
|
|
|
+ # Put settings here that Drupal will save automatically.
|
|
|
+ ),
|
|
|
'storage' => array(
|
|
|
'type' => 'field_chado_storage',
|
|
|
'module' => 'tripal_chado',
|
|
@@ -18,6 +20,7 @@ class chado_linker__relationship extends TripalField {
|
|
|
),
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* @see TripalField::can_attach()
|
|
|
*/
|
|
@@ -850,6 +853,27 @@ class chado_linker__relationship extends TripalField {
|
|
|
|
|
|
return $verb;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param unknown $field
|
|
|
+ * @param unknown $instance
|
|
|
+ * @param unknown $has_data
|
|
|
+ */
|
|
|
+ public static function settingsForm($field, $instance, $has_data) {
|
|
|
+ $element = parent::settingsForm($field, $instance, $has_data);
|
|
|
+
|
|
|
+ // Rest of the code goes here.
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param unknown $field
|
|
|
+ * @param unknown $instance
|
|
|
+ * @param unknown $has_data
|
|
|
+ */
|
|
|
+ public static function settingsFormValidate($field, $instance, $has_data) {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|