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 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().
File
-
modules/
field_ui/ field_ui.module, line 338
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'];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.