1 field.module | field_permission() |
Implements hook_permission().
Related topics
File
- core/
modules/ field/ field.module, line 268 - Attach custom data fields to Backdrop 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="@url">administer content types</a> to manage fields attached to content).', array(
'@url' => '#module-node',
)),
'restrict access' => TRUE,
'warning' => t('Deleting fields can cause irreversible data loss.'),
),
);
}