Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Issue #1235872 by christopher_skauss: Fixed Field help text and requi…

…red indicator don't show on node edit form.
  • Loading branch information...
commit d3c59e116cb439324c07e30c4e4e79d9b4362e37 1 parent 9f4408a
@ericduran ericduran authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 includes/fivestar.field.inc
View
4 includes/fivestar.field.inc
@@ -257,6 +257,8 @@ function fivestar_field_widget_form(&$form, &$form_state, $field, $instance, $la
'#title' => isset($instance['label']) ? $instance['label'] : FALSE,
'#options' => $options,
'#default_value' => isset($items[$delta]['rating']) ? $items[$delta]['rating'] : NULL,
+ '#description' => isset($instance['description']) ? $instance['description'] : FALSE,
+ '#required' => isset($instance['required']) ? $instance['required'] : FALSE,
);
}
@@ -291,6 +293,8 @@ function fivestar_field_widget_form(&$form, &$form_state, $field, $instance, $la
'#widget' => $widget,
'#settings' => $settings,
'#values' => $values,
+ '#description' => isset($instance['description']) ? $instance['description'] : FALSE,
+ '#required' => isset($instance['required']) ? $instance['required'] : FALSE,
);
}
Please sign in to comment.
Something went wrong with that request. Please try again.