function field_ui_display_overview

Returns the built and processed 'Manage display' form of a bundle.

The resulting form allows fields and pseudo-fields to be re-ordered.

Parameters

string $entity_type: The entity type for the fieldable entity.

string $bundle: The bundle for the fieldable entity.

string $view_mode: The view mode for the fieldable entity.

Return value

The processed form for the given entity type and bundle.

See also

field_ui_menu()

field_ui_display_overview_multistep_submit()

Drupal\field_ui\DisplayOverview::submit()

Related topics

1 string reference to 'field_ui_display_overview'
field_ui_menu in drupal/core/modules/field_ui/field_ui.module
Implements hook_menu().

File

drupal/core/modules/field_ui/field_ui.admin.inc, line 363
Administrative interface for custom field type creation.

Code

function field_ui_display_overview($entity_type, $bundle, $view_mode) {
  $bundle = field_extract_bundle($entity_type, $bundle);
  field_ui_inactive_message($entity_type, $bundle);
  $display_overview = new DisplayOverview($entity_type, $bundle, $view_mode);
  $form_state = array();
  $form_state['build_info']['callback'] = array(
    $display_overview,
    'form',
  );
  $form_state['build_info']['args'] = array(
    $entity_type,
    $bundle,
    $view_mode,
  );
  return drupal_build_form('field_ui_display_overview_form', $form_state);
}