field_default_form() contains the following section:
// If field module handles multiple values for this form element, and we are
// displaying an individual element, process the multiple value form.
if (!isset($get_delta) && field_behaviors_widget('multiple values', $instance) == FIELD_BEHAVIOR_DEFAULT) {
// Store the entity in the form.
$form['#entity'] = $entity;
$elements = field_multiple_value_form($field, $instance, $langcode, $items, $form, $form_state);
}
The comment is missing a "not" and should actually read:
// If field module handles multiple values for this form element, and we are
// not displaying an individual element, process the multiple value form.
Comments
Comment #2
yago elias commentedHello @ciss, you are right! this patch should be fine
Comment #3
ciss commentedComment #4
ciss commented+1 Looks good, even with the minor out of scope whitespace fix.
Comment #5
mmjvb commentedIndeed, now the comment makes sense!
Comment #6
dinesh18 commented#2 looks good to me. +1 to RTBC
Comment #8
mcdruid commentedThank you!