root / drupal7 / sites / all / modules / field_group / tests / field_group_test.module @ a84ddea4
1 |
<?php |
---|---|
2 |
|
3 |
/** |
4 |
* @file |
5 |
* Fieldgroup test module. |
6 |
*/ |
7 |
|
8 |
/** |
9 |
* Implements hook_field_access(). |
10 |
*/ |
11 |
function field_group_test_field_access($op, $field, $entity_type, $entity, $account) { |
12 |
// Set access to false for field_no_access. |
13 |
if ($op == 'view' && $field['field_name'] == 'field_no_access') { |
14 |
return FALSE; |
15 |
} |
16 |
} |
17 |
|