function twitter_post_field_access in Twitter 7.6
Implements hook_field_access()
File
- twitter_post/
twitter_post.field.inc, line 254 - Field configuration for twitter_post module.
Code
function twitter_post_field_access($op, $field, $entity_type, $entity, $account) {
if ($field['type'] == 'twitter_post') {
return user_access('post to twitter', $account);
}
}