field_permission

function field_permission

field_permission()

Implements hook_permission().

Related topics

File

modules/field/field.module, line 322
Attach custom data fields to Drupal entities.

Code

function field_permission() {
  return array(
    'administer fields' => array(
      'title' => t('Administer fields'),
      'description' => t('Additional permissions are required based on what the fields are attached to (for example, <a href="drupal_7-modules-field-field-module-function-field_permission-@url">administer content types<-a> to manage fields attached to content)-', array(
        '@url' => '.html?lang=en#module-node',
      )),
      'restrict access' => TRUE,
    ),
  );
}

© 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!field.module/function/field_permission/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部