field_group_test.module in Field Group 7
Fieldgroup test module.
File
tests/field_group_test.moduleView source
<?php
/**
* @file
* Fieldgroup test module.
*/
/**
* Implements hook_field_access().
*/
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;
}
}
Functions
Name | Description |
---|---|
field_group_test_field_access | Implements hook_field_access(). |