You are here

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'
_field_collection_collect_required_elements in ./field_collection.module

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;
}