You are here

function field_test_field_access in Drupal 7

Implements hook_field_access().

File

modules/field/tests/field_test.field.inc, line 408
Defines a field type and its formatters and widgets.

Code

function field_test_field_access($op, $field, $entity_type, $entity, $account) {
  if ($field['field_name'] == "field_no_{$op}_access") {
    return FALSE;
  }
  return TRUE;
}