public function views_handler_field_contact_link::access in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 modules/contact/views_handler_field_contact_link.inc \views_handler_field_contact_link::access()
- 6.2 modules/contact/views_handler_field_contact_link.inc \views_handler_field_contact_link::access()
An example of field level access control.
We must override the access method in the parent class, as that requires the 'access user profiles' permission, which the contact form does not.
Overrides views_handler_field_user_link::access
File
- modules/
contact/ views_handler_field_contact_link.inc, line 31 - Definition of views_handler_field_contact_link.
Class
- views_handler_field_contact_link
- A field that links to the user contact page, if access is permitted.
Code
public function access() {
return user_access('access user contact forms');
}