@@ -213,8 +213,6 @@ class chado_base__dbxref_id extends TripalField {
$field_table = $this->field['settings']['chado_table'];
$field_column = $this->field['settings']['chado_column'];
- $items = $form_state['values'][$field_name][$langcode];
-
// Get the field values.
foreach ($items as $delta => $values) {
$fk_val = $values['chado-' . $field_table . '__' . $field_column];
@@ -76,8 +76,6 @@ class chado_feature__md5checksum extends TripalField {
$field_table = $field['settings']['chado_table'];
$field_column = $field['settings']['chado_column'];
// Get the residues so we can calculate teh length.
$residues = $form_state['values']['feature__residues']['und'][0]['chado-feature__residues'];
@@ -103,8 +103,6 @@ class chado_feature__residues extends TripalField {
*/
public function widgetFormSubmit($form, &$form_state, $entity_type, $entity, $langcode, $delta) {
// Remove any white spaces.
$residues = $items[0]['chado-feature__residues'];
if ($residues) {
@@ -69,8 +69,6 @@ class chado_feature__seqlen extends TripalField {
@@ -210,8 +210,6 @@ class chado_linker__cvterm extends TripalField {
$table_name = $element['#table_name'];
$fkey = $element['#fkey_field'];
// If the form ID is field_ui_field_edit_form, then the user is editing the
// field's values in the manage fields form of Drupal. We don't want
// to validate it as if it were being used in a data entry form.
@@ -87,8 +87,6 @@ class chado_linker__cvterm_adder extends TripalField {
// Add the new field to the entity
if (array_key_exists('triggering_element', $form_state) and
$form_state['triggering_element']['#name'] == 'cvterm_class_adder_button') {
@@ -267,8 +267,6 @@ class chado_linker__dbxref extends TripalField {
$fkeys = array_values($schema['foreign keys'][$base_table]['columns']);
$fkey = $fkeys[0];
@@ -176,8 +176,6 @@ class chado_linker__prop extends TripalField {
foreach ($items AS $delta => $item) {
// Don't save if there is no value for prop
@@ -184,8 +184,6 @@ class chado_linker__prop_adder extends TripalField {
// delta is always zero.
$delta = 0;
// Add the new field to the entity but only if the property adder button
// was clicked
if (!array_key_exists('triggering_element', $form_state) or
@@ -140,8 +140,6 @@ class chado_linker__pub extends TripalField {
$fkey_value = $values['value'];
@@ -593,8 +593,6 @@ return;
$base_table = $this->field['settings']['base_table'];
$chado_record_id = $entity->chado_record_id;
$schema = chado_get_schema($field_table);
$fkeys = $schema['foreign keys'];
@@ -219,8 +219,6 @@ class chado_linker__synonym extends TripalField {