You are here

function _field_ui_bundle_admin_path in Drupal 7

Determines the administration path for a bundle.

9 calls to _field_ui_bundle_admin_path()
field_ui_display_overview_form in modules/field_ui/field_ui.admin.inc
Form constructor for the field display settings for a given view mode.
field_ui_display_overview_form_submit in modules/field_ui/field_ui.admin.inc
Form submission handler for field_ui_display_overview_form().
field_ui_fields_list in modules/field_ui/field_ui.admin.inc
Menu callback; lists all defined fields for quick reference.
field_ui_field_delete_form in modules/field_ui/field_ui.admin.inc
Form constructor for removing a field instance from a bundle.
field_ui_field_delete_form_submit in modules/field_ui/field_ui.admin.inc
Form submission handler for field_ui_field_delete_form().

... See full list

File

modules/field_ui/field_ui.module, line 338
Allows administrators to attach custom fields to fieldable types.

Code

function _field_ui_bundle_admin_path($entity_type, $bundle_name) {
  $bundles = field_info_bundles($entity_type);
  $bundle_info = $bundles[$bundle_name];
  if (isset($bundle_info['admin'])) {
    return isset($bundle_info['admin']['real path']) ? $bundle_info['admin']['real path'] : $bundle_info['admin']['path'];
  }
}