You are here

function paymentreference_field_access in Payment 7

Implements hook_field_access().

File

modules/paymentreference/paymentreference.module, line 516
Hook implementations and general functions.

Code

function paymentreference_field_access($op, $field, $entity_type, $entity, $account) {
  global $user;
  if ($field['type'] == 'paymentreference') {
    return !empty($user->uid);
  }
  return TRUE;
}