field_ui_field_edit_instance_pre_render

function field_ui_field_edit_instance_pre_render

field_ui_field_edit_instance_pre_render($element)

Pre-render function for field instance settings.

Combines the instance, widget, and other settings into a single fieldset so that elements within each group can be shown at different weights as if they all had the same parent.

File

modules/field_ui/field_ui.admin.inc, line 1959
Administrative interface for custom field type creation.

Code

function field_ui_field_edit_instance_pre_render($element) {
  // Merge the widget settings into the main form.
  if (isset($element['widget']['settings'])) {
    foreach (element_children($element['widget']['settings']) as $key) {
      $element['widget_' . $key] = $element['widget']['settings'][$key];
    }
    unset($e