1 field_ui.module _field_ui_bundle_admin_path($entity_type, $bundle_name)

Determines the administration path for a bundle.

File

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