field_ui_admin_access

function field_ui_admin_access

field_ui_admin_access($access_callback, $access_arguments)

Access callback to determine if a user is allowed to use the field UI.

Only grant access if the user has both the "administer fields" permission and is granted access by the entity specific restrictions.

File

modules/field_ui/field_ui.module, line 412
Allows administrators to attach custom fields to fieldable types.

Code

function field_ui_admin_access($access_callback, $access_arguments) {
  return user_access('administer fields') && call_user_func_array($access_callback, $access_arguments);
}

© 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_admin_access/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部