On this page
function _field_ui_bundle_admin_path
_field_ui_bundle_admin_path($entity_type, $bundle_name)
Determines the administration path for a bundle.
File
- 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'];
}
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field_ui!field_ui.module/function/_field_ui_bundle_admin_path/7.x