function field_test_field_access

Implements hook_field_access().

File

modules/field/tests/field_test.field.inc, line 408

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.