You are here

function restful_test_deny_access_field in RESTful 7.2

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

Flag a field to not be accessible.

Parameters

string $field_name: The field name. Defaults to "body".

3 calls to restful_test_deny_access_field()
RestfulEntityAndPropertyAccessTestCase::testCreateAccess in tests/RestfulEntityAndPropertyAccessTestCase.test
Test access control for creating an entity.
RestfulEntityAndPropertyAccessTestCase::testUpdateAccess in tests/RestfulEntityAndPropertyAccessTestCase.test
Test access control for updating an entity.
RestfulEntityAndPropertyAccessTestCase::testViewAccess in tests/RestfulEntityAndPropertyAccessTestCase.test
Test access control for viewing an entity.
2 string references to 'restful_test_deny_access_field'
restful_test_clear_access_field in tests/modules/restful_test/restful_test.module
Clear un-accessible fields.
restful_test_field_access in tests/modules/restful_test/restful_test.module
Implements hook_field_access().

File

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

Code

function restful_test_deny_access_field($field_name = 'body') {
  variable_set('restful_test_deny_access_field', $field_name);
}