function metatags_quick_field_access in Meta tags quick 7.2
Implements hook_field_access().
File
- ./
metatags_quick.module, line 131 - Quick and dirty implementation of meta tags for drupal 7 Module defines new field type 'meta'. Fields of this type are not displayed in HTML. Instead, they add html meta to the head section.
Code
function metatags_quick_field_access($op, $field, $entity_type, $entity, $account) {
if ($field['type'] == 'metatags_quick' && $op != 'view' && !user_access('edit metatags_quick')) {
return FALSE;
}
return TRUE;
}