function entity_metadata_field_access_callback in Entity API 7
Callback to determine access for properties which are fields.
1 string reference to 'entity_metadata_field_access_callback'
- entity_metadata_field_default_property_callback in modules/
field.info.inc - Callback to add in property info defaults per field instance.
File
- modules/
callbacks.inc, line 875 - Provides various callbacks for the whole core module integration.
Code
function entity_metadata_field_access_callback($op, $name, $entity, $account, $entity_type) {
$field = field_info_field($name);
return field_access($op, $field, $entity_type, $entity, $account);
}