|
@@ -587,9 +587,7 @@ function term_reference_tree_field_widget_form(&$form, &$form_state, $field, $in
|
|
|
* The validated element.
|
|
|
*/
|
|
|
function _term_reference_tree_widget_validate(&$element, &$form_state) {
|
|
|
- dsm($element, '_term_reference_tree_widget_validate | $element');
|
|
|
$items = _term_reference_tree_flatten($element, $form_state);
|
|
|
- dsm($items, '$items');
|
|
|
$value = array();
|
|
|
|
|
|
if ($element['#max_choices'] != 1) {
|
|
@@ -650,8 +648,6 @@ function _term_reference_tree_widget_validate(&$element, &$form_state) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- dsm($value, '$value');
|
|
|
|
|
|
if ($element['#required'] && empty($value)) {
|
|
|
// The title is already check_plained so it's appropriate to use !.
|