_field_ui_bundle_admin_path

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部