diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-10-09 19:22:56 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-10-09 19:22:56 +0000 |
commit | f175e6984f38bc5d7e5861077611aea36abb1e26 (patch) | |
tree | 96d6e36b9ca77e9bb68766dcf0912f803dd70af1 /modules/field/field.api.php | |
parent | 0ca8f9b2d759777fdf367b61d1c6fca1a331058d (diff) | |
download | brdo-f175e6984f38bc5d7e5861077611aea36abb1e26.tar.gz brdo-f175e6984f38bc5d7e5861077611aea36abb1e26.tar.bz2 |
- Patch #597832 by markus_petruxm: add (), arguments to field_access() to enhance the context for hook_field_access().
Diffstat (limited to 'modules/field/field.api.php')
-rw-r--r-- | modules/field/field.api.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/field/field.api.php b/modules/field/field.api.php index 461789a1b..9e9924f9b 100644 --- a/modules/field/field.api.php +++ b/modules/field/field.api.php @@ -1433,11 +1433,15 @@ function hook_field_build_modes($obj_type) { * - "view" * @param $field * The field on which the operation is to be performed. + * @param $obj_type + * The type of $object; e.g. 'node' or 'user'. + * @param $object + * (optional) The object 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. */ -function hook_field_access($op, $field, $account) { +function hook_field_access($op, $field, $obj_type, $object, $account) { } |