You are here

function _commerce_file_field_widget_value in Commerce File 7

The #value_callback for the commerce_file_generic field element.

1 string reference to '_commerce_file_field_widget_value'
commerce_file_field_widget_form in includes/commerce_file.field.inc
Implements hook_field_widget_form().

File

includes/commerce_file.field.inc, line 471
Implement an commerce_file field, based on the file module's file field.

Code

function _commerce_file_field_widget_value($element, $input = FALSE, $form_state) {

  // call file field's value callback to perform managed_file operations
  return file_field_widget_value($element, $input, $form_state);
}