function field_collection_field_widget_render_required in Field collection 7
#pre_render callback that ensures the element is rendered as being required.
1 string reference to 'field_collection_field_widget_render_required'
File
- ./
field_collection.module, line 1736 - Module implementing field collection field type.
Code
function field_collection_field_widget_render_required($element) {
$element['#required'] = TRUE;
return $element;
}