function field_group_test_field_access in Field Group 7
Implements hook_field_access().
File
- tests/
field_group_test.module, line 11 - Fieldgroup test module.
Code
function field_group_test_field_access($op, $field, $entity_type, $entity, $account) {
// Set access to false for field_no_access.
if ($op == 'view' && $field['field_name'] == 'field_no_access') {
return FALSE;
}
}