You are here

function radioactivity_field_access in Radioactivity 7.2

Implements hook_field_access().

File

./radioactivity.field.inc, line 29

Code

function radioactivity_field_access($op, $field, $entity_type, $entity, $account) {
  if ($field['type'] == 'radioactivity' && $op == 'edit') {
    return user_access("edit radioactivity");
  }
  return TRUE;
}