function _field_ui_bundle_admin_path

Determines the administration path for a bundle.

9 calls to _field_ui_bundle_admin_path()
field_ui_display_overview_form in drupal/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 drupal/modules/field_ui/field_ui.admin.inc
Form submission handler for field_ui_display_overview_form().
field_ui_fields_list in drupal/modules/field_ui/field_ui.admin.inc
Menu callback; lists all defined fields for quick reference.
field_ui_field_delete_form in drupal/modules/field_ui/field_ui.admin.inc
Form constructor for removing a field instance from a bundle.
field_ui_field_delete_form_submit in drupal/modules/field_ui/field_ui.admin.inc
Form submission handler for field_ui_field_delete_form().

... See full list

File

drupal/modules/field_ui/field_ui.module, line 333
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'];
  }
}