_field_ui_bundle_admin_path

7 field_ui.module _field_ui_bundle_admin_path($entity_type, $bundle_name)
8 field_ui.module _field_ui_bundle_admin_path($entity_type, $bundle_name)

Determines the adminstration path for a bundle.

9 calls to _field_ui_bundle_admin_path()

File

modules/field_ui/field_ui.module, line 323
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'];
  }
}
Login or register to post comments