field_group_test.module 321 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * @file
  4. * Fieldgroup test module.
  5. */
  6. /**
  7. * Implements hook_field_access().
  8. */
  9. function field_group_test_field_access($op, $field, $entity_type, $entity, $account) {
  10. // Set access to false for field_no_access.
  11. if ($op == 'view' && $field['field_name'] == 'field_no_access') {
  12. return FALSE;
  13. }
  14. }