Commit 5cf9135e authored by catch's avatar catch

Issue #1393234 by dww: Fixed API docs for field_access() are confusing.

parent 7fef2608
...@@ -975,18 +975,20 @@ function field_has_data($field) { ...@@ -975,18 +975,20 @@ function field_has_data($field) {
/** /**
* Determine whether the user has access to a given field. * Determine whether the user has access to a given field.
* *
* @param $op * @param string $op
* The operation to be performed. Possible values: * The operation to be performed. Possible values:
* - "edit" * - 'edit'
* - "view" * - 'view'
* @param $field * @param array $field
* The field on which the operation is to be performed. * The full field structure array for the field on which the operation is to
* @param $entity_type * be performed. See field_info_field().
* @param string $entity_type
* The type of $entity; e.g., 'node' or 'user'. * The type of $entity; e.g., 'node' or 'user'.
* @param $entity * @param $entity
* (optional) The entity for the operation. * (optional) The entity for the operation.
* @param $account * @param $account
* (optional) The account to check, if not given use currently logged in user. * (optional) The account to check, if not given use currently logged in user.
*
* @return * @return
* TRUE if the operation is allowed; * TRUE if the operation is allowed;
* FALSE if the operation is denied. * FALSE if the operation is denied.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment