You are here

function simplenews_field_access in Simplenews 7.2

Implements hook_field_access().

File

./simplenews.module, line 3150
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_field_access($op, $field, $entity_type, $entity, $account) {

  // Deny access to the issue status and sent count fields, these are used for
  // data storage only.
  if (in_array($field['field_name'], array(
    'simplenews_issue_status',
    'simplenews_sent_count',
    'simplenews_handler_settings',
    'simplenews_handler',
  ))) {
    return FALSE;
  }
}