Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
5cf9135e
Commit
5cf9135e
authored
Jan 13, 2012
by
Nathaniel Catchpole
Browse files
Issue
#1393234
by dww: Fixed API docs for field_access() are confusing.
parent
7fef2608
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/field/field.module
View file @
5cf9135e
...
...
@@ -975,18 +975,20 @@ function field_has_data($field) {
/**
* Determine whether the user has access to a given field.
*
* @param $op
* @param
string
$op
* The operation to be performed. Possible values:
* - "edit"
* - "view"
* @param $field
* The field on which the operation is to be performed.
* @param $entity_type
* - 'edit'
* - 'view'
* @param array $field
* The full field structure array for the field on which the operation is to
* be performed. See field_info_field().
* @param string $entity_type
* The type of $entity; e.g., 'node' or 'user'.
* @param $entity
* (optional) The entity for the operation.
* @param $account
* (optional) The account to check, if not given use currently logged in user.
*
* @return
* TRUE if the operation is allowed;
* FALSE if the operation is denied.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment