1 field_test.field.inc field_test_field_access($op, $field, $entity_type, $entity, $account)

Implements hook_field_access().

File

core/modules/field/tests/field_test/field_test.field.inc, line 413
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;
}