function views_handler_field_contact_link::access

Same name in other branches
  1. 7.x-3.x modules/contact/views_handler_field_contact_link.inc \views_handler_field_contact_link::access()

Overrides views_handler_field_user_link::access

File

modules/contact/views_handler_field_contact_link.inc, line 34

Class

views_handler_field_contact_link
A field that links to the user contact page, if access is permitted.

Code

function access() {
    global $user;
    // Only registered users can view other registered user's contact page.
    if (empty($user->uid)) {
        return FALSE;
    }
    return TRUE;
}