You are here

function field_permissions_list in Field Permissions 6

Same name and namespace in other branches
  1. 7 field_permissions.admin.inc \field_permissions_list()

Obtain the list of field permissions.

4 calls to field_permissions_list()
field_permissions_overview in includes/admin.inc
Menu callback; Field permissions overview.
theme_field_permissions_troubleshooting_form in includes/admin.inc
Render the Field permissions troubleshooting form.
_field_permissions_field_settings_alter in includes/admin.inc
Implementation of hook_field_settings_alter().
_field_permissions_perm in includes/admin.inc
Implementation of hook_perm().

File

includes/admin.inc, line 48
Administrative interface for the Field Permissions module.

Code

function field_permissions_list($field_label = '') {
  return array(
    'create' => array(
      'label' => t('Create field'),
      'description' => t('Create @field (edit on node creation).', array(
        '@field' => $field_label,
      )),
    ),
    'edit' => array(
      'label' => t('Edit field'),
      'description' => t('Edit @field, regardless of node author.', array(
        '@field' => $field_label,
      )),
    ),
    'edit own' => array(
      'label' => t('Edit own field'),
      'description' => t('Edit own @field on node created by the user.', array(
        '@field' => $field_label,
      )),
    ),
    'view' => array(
      'label' => t('View field'),
      'description' => t('View @field, regardless of node author.', array(
        '@field' => $field_label,
      )),
    ),
    'view own' => array(
      'label' => t('View own field'),
      'description' => t('View own @field on node created by the user.', array(
        '@field' => $field_label,
      )),
    ),
  );
}