function drush_field_ui_bundle_admin_path

8.0.x field.drush.inc drush_field_ui_bundle_admin_path($entity_type, $bundle_name)
6.x field.drush.inc drush_field_ui_bundle_admin_path($entity_type, $bundle_name)
7.x field.drush.inc drush_field_ui_bundle_admin_path($entity_type, $bundle_name)
4.x field.drush.inc drush_field_ui_bundle_admin_path($entity_type, $bundle_name)
5.x field.drush.inc drush_field_ui_bundle_admin_path($entity_type, $bundle_name)
3 calls to drush_field_ui_bundle_admin_path()

File

commands/core/field.drush.inc, line 136
Field API's drush integration

Code

function drush_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'];
  }
}