function views_handler::access in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 includes/handlers.inc \views_handler::access()
- 7.3 includes/handlers.inc \views_handler::access()
Check whether current user has access to this handler.
Return value
boolean
5 methods override views_handler::access()
- views_handler_field_node_counter_timestamp::access in modules/
statistics/ views_handler_field_node_counter_timestamp.inc - Check whether current user has access to this handler.
- views_handler_field_node_revision_link_delete::access in modules/
node/ views_handler_field_node_revision_link_delete.inc - Check whether current user has access to this handler.
- views_handler_field_node_revision_link_revert::access in modules/
node/ views_handler_field_node_revision_link_revert.inc - Check whether current user has access to this handler.
- views_handler_field_statistics_numeric::access in modules/
statistics/ views_handler_field_statistics_numeric.inc - Check whether current user has access to this handler.
- views_handler_field_user_link::access in modules/
user/ views_handler_field_user_link.inc - Check whether current user has access to this handler.
File
- includes/
handlers.inc, line 356 - handlers.inc 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;
}