function hook_field_permissions_list_alter in Field Permissions 7
Alter the permissions handled by field_permissions module.
Parameters
array $permissions: The $permissions array created by the Field permissions module.
string $field_label: The field name.
File
- ./
field_permissions.api.php, line 34 - Hooks provided by the Field Permission module.
Code
function hook_field_permissions_list_alter(&$permissions, $field_label) {
$permissions += array(
'view own node preview' => array(
'label' => t('View own field on node preview'),
'title' => t('View own value for field %field on node preview', array(
'%field' => $field_label,
)),
),
'view node preview' => array(
'label' => t('View field on node preview'),
'title' => t("View anyone's value for field %field on node preview", array(
'%field' => $field_label,
)),
),
);
}