You are here

function views_handler_field_privatemsg_link::access in Privatemsg 7.2

Same name and namespace in other branches
  1. 6.2 views/views_handler_field_privatemsg_link.inc \views_handler_field_privatemsg_link::access()
  2. 6 views/views_handler_field_privatemsg_link.inc \views_handler_field_privatemsg_link::access()
  3. 7 views/views_handler_field_privatemsg_link.inc \views_handler_field_privatemsg_link::access()

Only display the column for users with the appropriate permission.

Overrides views_handler::access

File

views/views_handler_field_privatemsg_link.inc, line 169
Contains the privatemsg link views field handler.

Class

views_handler_field_privatemsg_link
Provides a configurable link to the new message form for a specific user.

Code

function access() {
  return privatemsg_user_access('write privatemsg');
}