Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 9.x
»
user.module
»
user_access
Search Drupal 9.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 9.x
Topics
Classes
Functions
Files
Namespaces
Constants
Globals
Deprecated
168 calls to user_access()
Access::query
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Plugin/
views/
filter/
Access.php
See _node_access_where_sql() for a non-views query based implementation.
AccountFormController::form
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
AccountFormController.php
Overrides
Drupal\Core\Entity\EntityFormController::form
().
aggregator_block_view
in drupal/
core/
modules/
aggregator/
aggregator.module
Implements
hook_block_view
().
authorize_access_allowed
in drupal/
core/
authorize.php
Determines if the current user is allowed to run
authorize.php
.
block_admin_configure
in drupal/
core/
modules/
block/
block.admin.inc
Form constructor for the block configuration form.
book_export_html
in drupal/
core/
modules/
book/
book.pages.inc
Generates HTML for export when invoked by
book_export
().
book_form_node_form_alter
in drupal/
core/
modules/
book/
book.module
Implements
hook_form_BASE_FORM_ID_alter
() for node_form().
book_node_prepare
in drupal/
core/
modules/
book/
book.module
Implements
hook_node_prepare
().
book_node_presave
in drupal/
core/
modules/
book/
book.module
Implements
hook_node_presave
().
book_node_view_link
in drupal/
core/
modules/
book/
book.module
Adds relevant book links to the node's links.
CommentFormController::actions
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
CommentFormController.php
Overrides
Drupal\Core\Entity\EntityFormController::actions
().
CommentFormController::form
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
CommentFormController.php
Overrides
Drupal\Core\Entity\EntityFormController::form
().
CommentFormController::save
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
CommentFormController.php
Overrides
Drupal\Core\Entity\EntityFormController::save
().
CommentLinksTest::assertCommentLinks
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
Tests/
CommentLinksTest.php
Asserts that comment links appear according to the passed environment.
CommentStorageController::preSave
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
CommentStorageController.php
Overrides
Drupal\Core\Entity\DatabaseStorageController::preSave
().
comment_access
in drupal/
core/
modules/
comment/
comment.module
Determines whether the current user has access to a particular comment.
comment_block_view
in drupal/
core/
modules/
comment/
comment.module
Implements
hook_block_view
().
comment_file_download_access
in drupal/
core/
modules/
comment/
comment.module
Implements
hook_file_download_access
().
comment_form_node_form_alter
in drupal/
core/
modules/
comment/
comment.module
Implements
hook_form_BASE_FORM_ID_alter
().
comment_form_node_type_form_alter
in drupal/
core/
modules/
comment/
comment.module
Implements
hook_form_FORM_ID_alter
().
comment_get_display_ordinal
in drupal/
core/
modules/
comment/
comment.module
Gets the display ordinal for a comment, starting from 0.
comment_get_thread
in drupal/
core/
modules/
comment/
comment.module
Retrieves comments for a thread.
comment_links
in drupal/
core/
modules/
comment/
comment.module
Adds reply, edit, delete, etc. links, depending on user permissions.
comment_node_page_additions
in drupal/
core/
modules/
comment/
comment.module
Builds the comment-related elements for node detail pages.
comment_node_search_result
in drupal/
core/
modules/
comment/
comment.module
Implements
hook_node_search_result
().
comment_node_view
in drupal/
core/
modules/
comment/
comment.module
Implements
hook_node_view
().
comment_reply
in drupal/
core/
modules/
comment/
comment.pages.inc
Form constructor for the comment reply form.
contact_personal_form
in drupal/
core/
modules/
contact/
contact.pages.inc
Page callback: Form constructor for the personal contact form.
contact_personal_form_submit
in drupal/
core/
modules/
contact/
contact.pages.inc
Form submission handler for
contact_personal_form
().
contact_site_form
in drupal/
core/
modules/
contact/
contact.pages.inc
Page callback: Form constructor for the site-wide contact form.
ContextualLinks::render
in drupal/
core/
modules/
contextual/
lib/
Drupal/
contextual/
Plugin/
views/
field/
ContextualLinks.php
Render the contextual fields.
contextual_preprocess
in drupal/
core/
modules/
contextual/
contextual.module
Implements
hook_preprocess
().
DisplayPluginBase::access
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Plugin/
views/
display/
DisplayPluginBase.php
Determine if the user has access to this display of the view.
EntityTestAccessController::viewAccess
in drupal/
core/
modules/
system/
tests/
modules/
entity_test/
lib/
Drupal/
entity_test/
EntityTestAccessController.php
Implements EntityAccessControllerInterface::view().
EntityTranslationController::getTranslationAccess
in drupal/
core/
modules/
translation_entity/
lib/
Drupal/
translation_entity/
EntityTranslationController.php
Implements EntityTranslationControllerInterface::getTranslationAccess().
field_test_field_access
in drupal/
core/
modules/
field/
tests/
modules/
field_test/
field_test.field.inc
Implements
hook_field_access
().
FilterFormatAccessTest::testFormatPermissions
in drupal/
core/
modules/
filter/
lib/
Drupal/
filter/
Tests/
FilterFormatAccessTest.php
filter_access
in drupal/
core/
modules/
filter/
filter.module
Checks if a user has access to a particular text format.
filter_permission
in drupal/
core/
modules/
filter/
filter.module
Implements
hook_permission
().
filter_process_format
in drupal/
core/
modules/
filter/
filter.module
Expands an element into a base element with text format selector attached.
forum_block_view
in drupal/
core/
modules/
forum/
forum.module
Implements
hook_block_view
().
hook_block_view
in drupal/
core/
modules/
block/
block.api.php
Return a rendered or renderable view of a block.
hook_field_access
in drupal/
core/
modules/
field/
field.api.php
Determine whether the user has access to a given field.
hook_file_download
in drupal/
core/
modules/
system/
system.api.php
Control access to private file downloads and specify HTTP headers.
hook_node_access
in drupal/
core/
modules/
node/
node.api.php
Controls access to a node.
hook_node_grants
in drupal/
core/
modules/
node/
node.api.php
Inform the node access system what permissions the user has.
hook_preprocess
in drupal/
core/
modules/
system/
theme.api.php
Preprocess theme variables for templates.
hook_query_TAG_alter
in drupal/
core/
modules/
system/
system.api.php
Perform alterations to a structured query for a given tag.
hook_search_access
in drupal/
core/
modules/
search/
search.api.php
Define access to a custom search routine.
hook_template_preprocess_default_variables_alter
in drupal/
core/
modules/
system/
system.api.php
Alter the default, hook-independent variables for all templates.
hook_user_cancel_methods_alter
in drupal/
core/
modules/
user/
user.api.php
Modify account cancellation methods.
hook_views_pre_execute
in drupal/
core/
modules/
views/
views.api.php
Act on the view after the query is built and just before it is executed.
hook_views_pre_view
in drupal/
core/
modules/
views/
views.api.php
Alter a view at the very beginning of Views processing.
Language::render_link
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Plugin/
views/
field/
Language.php
language_access_language_edit_or_delete
in drupal/
core/
modules/
language/
language.module
Editing or deleting locked languages should not be possible.
layout_user_access
in drupal/
core/
modules/
layout/
layout.module
Access callback: Checks the existence of a layout.
Link::access
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Plugin/
views/
field/
Link.php
Check whether current user has access to this handler.
LinkApprove::access
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
Plugin/
views/
field/
LinkApprove.php
Check whether current user has access to this handler.
LinkDelete::access
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
Plugin/
views/
field/
LinkDelete.php
Check whether current user has access to this handler.
LinkReply::access
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
Plugin/
views/
field/
LinkReply.php
Check whether current user has access to this handler.
menu_form_node_form_alter
in drupal/
core/
modules/
menu/
menu.module
Implements
hook_form_BASE_FORM_ID_alter
().
NodeFormController::form
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
NodeFormController.php
Overrides
Drupal\Core\Entity\EntityFormController::form
().
NodeRevisionPermissionsTest::testNodeRevisionAccessAnyType
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Tests/
NodeRevisionPermissionsTest.php
Tests general revision access permissions.
NodeRevisionPermissionsTest::testNodeRevisionAccessPerType
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Tests/
NodeRevisionPermissionsTest.php
Tests revision access permissions for a specific content type.
node_access
in drupal/
core/
modules/
node/
node.module
Access callback: Checks a user's permission for performing a node operation.
node_access_test_node_grants
in drupal/
core/
modules/
node/
tests/
modules/
node_access_test/
node_access_test.module
Implements
hook_node_grants
().
node_admin_nodes
in drupal/
core/
modules/
node/
node.admin.inc
Returns the admin form object to
node_admin_content
().
node_block_view
in drupal/
core/
modules/
node/
node.module
Implements
hook_block_view
().
node_form_search_form_alter
in drupal/
core/
modules/
node/
node.module
Implements
hook_form_FORM_ID_alter
().
node_get_recent
in drupal/
core/
modules/
node/
node.module
Finds the most recently changed nodes that are available to the current user.
node_help
in drupal/
core/
modules/
node/
node.module
Implements
hook_help
().
node_node_access
in drupal/
core/
modules/
node/
node.module
Implements
hook_node_access
().
node_query_node_access_alter
in drupal/
core/
modules/
node/
node.module
Implements
hook_query_TAG_alter
().
node_revision_overview
in drupal/
core/
modules/
node/
node.pages.inc
Page callback: Generates an overview table of older revisions of a node.
node_row_node_view_preprocess_node
in drupal/
core/
modules/
node/
node.views.inc
Implements hook_preprocess_node().
node_search_access
in drupal/
core/
modules/
node/
node.module
Implements
hook_search_access
().
node_views_query_substitutions
in drupal/
core/
modules/
node/
node.views.inc
Implements
hook_views_query_substitutions
().
overlay_disable_message
in drupal/
core/
modules/
overlay/
overlay.module
Returns a renderable array representing a message for disabling the overlay.
overlay_form_user_profile_form_alter
in drupal/
core/
modules/
overlay/
overlay.module
Implements
hook_form_FORM_ID_alter
().
overlay_init
in drupal/
core/
modules/
overlay/
overlay.module
Implements
hook_init
().
overlay_user_dismiss_message_access
in drupal/
core/
modules/
overlay/
overlay.module
Access callback: Determines access to dismiss the accessibility message.
path_admin_delete_confirm
in drupal/
core/
modules/
path/
path.admin.inc
Form constructor for the path deletion form.
path_form_node_form_alter
in drupal/
core/
modules/
path/
path.module
Implements
hook_form_BASE_FORM_ID_alter
() for node_form().
path_form_taxonomy_term_form_alter
in drupal/
core/
modules/
path/
path.module
Implements
hook_form_FORM_ID_alter
() for taxonomy_term_form().
PermissionAccessCheck::access
in drupal/
core/
lib/
Drupal/
Core/
Access/
PermissionAccessCheck.php
Implements AccessCheckInterface::access().
Php::access
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Plugin/
views/
argument_validator/
Php.php
Only let users with PHP block visibility permissions set/modify this validate plugin.
Php::access
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Plugin/
views/
argument_default/
Php.php
Only let users with PHP block visibility permissions set/modify this default plugin.
poll_block_view
in drupal/
core/
modules/
poll/
poll.module
Implements
hook_block_view
().
poll_form
in drupal/
core/
modules/
poll/
poll.module
Implements
hook_form
().
poll_insert
in drupal/
core/
modules/
poll/
poll.module
Implements
hook_insert
().
poll_load
in drupal/
core/
modules/
poll/
poll.module
Implements
hook_load
().
ProfileFormController::actions
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
ProfileFormController.php
Overrides
Drupal\Core\Entity\EntityFormController::actions
().
rdf_preprocess_node
in drupal/
core/
modules/
rdf/
rdf.module
Implements
hook_preprocess_HOOK
() for
node.tpl.php
.
RegisterFormController::form
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
RegisterFormController.php
Overrides
Drupal\Core\Entity\EntityFormController::form
().
RevisionLink::access
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Plugin/
views/
field/
RevisionLink.php
Check whether current user has access to this handler.
RevisionLinkDelete::access
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Plugin/
views/
field/
RevisionLinkDelete.php
Check whether current user has access to this handler.
RevisionLinkRevert::access
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Plugin/
views/
field/
RevisionLinkRevert.php
Check whether current user has access to this handler.
search_block_view
in drupal/
core/
modules/
search/
search.module
Implements
hook_block_view
().
search_is_active
in drupal/
core/
modules/
search/
search.module
Determines access for the 'search' path.
shortcut_help
in drupal/
core/
modules/
shortcut/
shortcut.module
Implements
hook_help
().
shortcut_set_delete_access
in drupal/
core/
modules/
shortcut/
shortcut.module
Access callback for deleting a shortcut set.
shortcut_set_edit_access
in drupal/
core/
modules/
shortcut/
shortcut.module
Access callback for editing a shortcut set.
shortcut_set_switch
in drupal/
core/
modules/
shortcut/
shortcut.admin.inc
Form callback: builds the form for switching shortcut sets.
shortcut_set_switch_access
in drupal/
core/
modules/
shortcut/
shortcut.module
Access callback for switching the shortcut set assigned to a user account.
statistics_block_view
in drupal/
core/
modules/
statistics/
statistics.module
Implements
hook_block_view
().
statistics_node_view
in drupal/
core/
modules/
statistics/
statistics.module
Implements
hook_node_view
().
statistics_top_visitors
in drupal/
core/
modules/
statistics/
statistics.admin.inc
Page callback: Displays the "top visitors" page.
system_admin_config_page
in drupal/
core/
modules/
system/
system.admin.inc
Menu callback; Provide the administration overview page.
system_custom_theme
in drupal/
core/
modules/
system/
system.module
Implements
hook_custom_theme
().
system_modules
in drupal/
core/
modules/
system/
system.admin.inc
Menu callback; provides module enable/disable interface.
taxonomy_term_access
in drupal/
core/
modules/
taxonomy/
taxonomy.module
Access callback: Checks a user's permission for performing a taxonomy term operation.
template_preprocess_aggregator_feed_source
in drupal/
core/
modules/
aggregator/
aggregator.pages.inc
Processes variables for
aggregator-feed-source.tpl.php
.
template_preprocess_poll_results
in drupal/
core/
modules/
poll/
poll.module
Implements template_preprocess_HOOK() for
poll-results.tpl.php
.
template_preprocess_username
in drupal/
core/
modules/
user/
user.module
Preprocesses variables for
theme_username
().
TestEntityFormController::form
in drupal/
core/
modules/
field/
tests/
modules/
field_test/
lib/
Drupal/
field_test/
TestEntityFormController.php
Overrides
Drupal\Core\Entity\EntityFormController::form
().
theme_book_admin_table
in drupal/
core/
modules/
book/
book.admin.inc
Returns HTML for a book administration form.
theme_node_recent_block
in drupal/
core/
modules/
node/
node.module
Returns HTML for a list of recent content.
theme_poll_choices
in drupal/
core/
modules/
poll/
poll.module
Returns HTML for an admin poll form for choices.
toolbar_page_build
in drupal/
core/
modules/
toolbar/
toolbar.module
Implements
hook_page_build
().
translation_entity_form_field_ui_field_edit_form_alter
in drupal/
core/
modules/
translation_entity/
translation_entity.module
Implements
hook_form_FORM_ID_alter
().
translation_entity_translate_access
in drupal/
core/
modules/
translation_entity/
translation_entity.module
Access callback for the translation overview page.
translation_user_can_translate_node
in drupal/
core/
modules/
translation/
translation.module
Check if the user has permissions to translate a node.
update_access_allowed
in drupal/
core/
update.php
Determines if the current user is allowed to run
update.php
.
update_helpful_links
in drupal/
core/
update.php
Provides links to the homepage and administration pages.
update_init
in drupal/
core/
modules/
update/
update.module
Implements
hook_init
().
update_manager_access
in drupal/
core/
modules/
update/
update.module
Access callback: Resolves if the current user can access updater menu items.
update_results_page
in drupal/
core/
update.php
Displays results of the update script with any accompanying errors.
User::render_link
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Plugin/
views/
field/
User.php
UserPermissionsTest::testAdministratorRole
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserPermissionsTest.php
Test assigning of permissions for the administrator role.
UserPermissionsTest::testUserPermissionChanges
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserPermissionsTest.php
Change user permissions and check
user_access
().
UserPermissionsTest::testUserRoleChangePermissions
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserPermissionsTest.php
Verify proper permission changes by
user_role_change_permissions
().
user_block_view
in drupal/
core/
modules/
user/
user.module
Implements
hook_block_view
().
user_build_filter_query
in drupal/
core/
modules/
user/
user.module
Extends a query object for user administration filters based on session.
user_cancel_access
in drupal/
core/
modules/
user/
user.module
Menu access callback; limit access to account cancellation pages.
user_cancel_confirm_form
in drupal/
core/
modules/
user/
user.pages.inc
Form builder; confirm form for cancelling user account.
user_cancel_confirm_form_submit
in drupal/
core/
modules/
user/
user.pages.inc
Submit handler for the account cancellation confirm form.
user_cancel_methods
in drupal/
core/
modules/
user/
user.pages.inc
Helper function to return available account cancellation methods.
user_edit_access
in drupal/
core/
modules/
user/
user.module
Access callback for user account editing.
user_menu_site_status_alter
in drupal/
core/
modules/
user/
user.module
Implements
hook_menu_site_status_alter
().
user_role_delete_access
in drupal/
core/
modules/
user/
user.module
Menu access callback for user role deletion.
user_search_access
in drupal/
core/
modules/
user/
user.module
Implements
hook_search_access
().
user_search_execute
in drupal/
core/
modules/
user/
user.module
Implements
hook_search_execute
().
user_template_preprocess_default_variables_alter
in drupal/
core/
modules/
user/
user.module
Implements
hook_template_preprocess_default_variables_alter
().
user_user_operations
in drupal/
core/
modules/
user/
user.module
Implements
hook_user_operations
().
user_view_access
in drupal/
core/
modules/
user/
user.module
User view access callback.
views_check_perm
in drupal/
core/
modules/
views/
views.module
Access callback for the views_plugin_access_perm access plugin.
views_check_roles
in drupal/
core/
modules/
views/
views.module
Access callback for the views_plugin_access_role access plugin.
views_import_access
in drupal/
core/
modules/
views/
views.module
Access callback to determine if the user can import Views.
_aggregator_has_categories
in drupal/
core/
modules/
aggregator/
aggregator.module
Access callback: Determines whether there are any aggregator categories.
_aggregator_page_list
in drupal/
core/
modules/
aggregator/
aggregator.pages.inc
Prints an aggregator page listing a number of feed items.
_block_themes_access
in drupal/
core/
modules/
block/
block.module
Access callback: Only enabled themes can be accessed.
_book_add_form_elements
in drupal/
core/
modules/
book/
book.module
Builds the common elements of the book form for the node and outline forms.
_book_outline_access
in drupal/
core/
modules/
book/
book.module
Access callback: Determines if the outline tab is accessible.
_contact_personal_tab_access
in drupal/
core/
modules/
contact/
contact.module
Access callback: Checks access for a user's personal contact form.
_field_ui_view_mode_menu_access
in drupal/
core/
modules/
field_ui/
field_ui.module
Access callback: Checks access for the 'view mode display settings' pages.
_filter_disable_format_access
in drupal/
core/
modules/
filter/
filter.module
Access callback: Checks access for disabling text formats.
_form_test_vertical_tabs_form
in drupal/
core/
modules/
system/
tests/
modules/
form_test/
form_test.module
Tests functionality of vertical tabs.
_menu_check_access
in drupal/
core/
includes/
menu.inc
Checks access to a menu item using the access callback.
_menu_site_is_offline
in drupal/
core/
includes/
menu.inc
Checks whether the site is in maintenance mode.
_node_add_access
in drupal/
core/
modules/
node/
node.module
Access callback: Checks whether the user has permission to add a node.
_node_revision_access
in drupal/
core/
modules/
node/
node.module
Access callback: Checks node revision access.
_poll_choice_form
in drupal/
core/
modules/
poll/
poll.module
Constructs one individual form choice as part of poll node form.
_poll_menu_access
in drupal/
core/
modules/
poll/
poll.module
Access callback: Determines if a node is acceptable for poll menu items.
_search_menu_access
in drupal/
core/
modules/
search/
search.module
Access callback for search tabs.
_system_themes_access
in drupal/
core/
modules/
system/
system.module
Menu item access callback - only enabled themes can be accessed.
_toolbar_subtrees_access
in drupal/
core/
modules/
toolbar/
toolbar.module
Access callback: Returns if the user has access to the rendered subtree requested by the hash.
_tracker_myrecent_access
in drupal/
core/
modules/
tracker/
tracker.module
Access callback: Determines access permission for a user's own account.
_tracker_user_access
in drupal/
core/
modules/
tracker/
tracker.module
Access callback: Determines access permission for an account.