You are here

function commerce_file_field_instance_settings_form in Commerce File 7

Implements hook_field_instance_settings_form().

File

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

Code

function commerce_file_field_instance_settings_form($field, $instance) {
  $settings = $instance['settings'];

  // Use the file field instance settings form as a basis.
  $form = file_field_instance_settings_form($field, $instance);

  // build form
  _commerce_file_field_add_license_elements($form, 'instance', $settings);

  // Remove the description option.
  unset($form['description_field']);
  return $form;
}