diff --git a/conditional_fields.module b/conditional_fields.module index 34503a6..3074d08 100644 --- a/conditional_fields.module +++ b/conditional_fields.module @@ -436,6 +436,11 @@ function conditional_fields_form_after_build($form, &$form_state) { } $dependent_location = array_merge($dependent_info['field_parents'], array($dependent)); + // Add support for the Taxonomy Manager module. + if ($form['#form_id'] == 'taxonomy_manager_form' && isset($form['term_data'])) { + array_unshift($dependent_location, 'term_data'); + } + $dependent_form_field = drupal_array_get_nested_value($form, $dependent_location); // Cycle the dependant's dependees.