You are here

function restful_test_field_access in RESTful 7

Same name and namespace in other branches
  1. 7.2 tests/modules/restful_test/restful_test.module \restful_test_field_access()

Implements hook_field_access().

File

tests/modules/restful_test/restful_test.module, line 75
Helper module for testing the RESTful module.

Code

function restful_test_field_access($op, $field, $entity_type, $entity, $account) {
  if (!($field_name = variable_get('restful_test_deny_access_field'))) {
    return;
  }
  if ($field_name == $field['field_name']) {
    return FALSE;
  }
}