function views_handler::access

cis7 handlers.inc views_handler::access()
cle7 handlers.inc views_handler::access()
elmsmedia7 handlers.inc views_handler::access()
icor7 handlers.inc views_handler::access()
meedjum_blog7 handlers.inc views_handler::access()
mooc7 handlers.inc views_handler::access()

Check whether current user has access to this handler.

Return value

boolean

7 methods override views_handler::access()
views_handler_field_comment_link_approve::access in sites/all/modules/ulmus/views/modules/comment/views_handler_field_comment_link_approve.inc
Check whether current user has access to this handler.
views_handler_field_comment_link_delete::access in sites/all/modules/ulmus/views/modules/comment/views_handler_field_comment_link_delete.inc
Check whether current user has access to this handler.
views_handler_field_comment_link_reply::access in sites/all/modules/ulmus/views/modules/comment/views_handler_field_comment_link_reply.inc
Check whether current user has access to this handler.
views_handler_field_field::access in sites/all/modules/ulmus/views/modules/field/views_handler_field_field.inc
Check whether current user has access to this handler.
views_handler_field_locale_link_edit::access in sites/all/modules/ulmus/views/modules/locale/views_handler_field_locale_link_edit.inc
Check whether current user has access to this handler.

... See full list

File

sites/all/modules/ulmus/views/includes/handlers.inc, line 572
Defines the various handler objects to help build and display views.

Class

views_handler
Base handler, from which all the other handlers are derived. It creates a common interface to create consistency amongst handlers and data.

Code

function access() {
  if (isset($this->definition['access callback']) && function_exists($this->definition['access callback'])) {
    if (isset($this->definition['access arguments']) && is_array($this->definition['access arguments'])) {
      return call_user_func_array($this->definition['access callback'], $this->definition['access arguments']);
    }
    return $this->definition['access callback']();
  }

  return TRUE;
}