user_access

Functions that call user_access()

Namesort iconLocationDescription
aggregator_blockmodules/aggregator/aggregator.moduleImplementation of hook_block().
aggregator_categorize_items_validatemodules/aggregator/aggregator.pages.incValidate aggregator_categorize_items form submissions.
block_admin_configuremodules/block/block.admin.incMenu callback; displays the block configuration form.
blogapi_blogger_edit_postmodules/blogapi/blogapi.moduleBlogging API callback. Modifies the specified blog node.
blogapi_blogger_new_postmodules/blogapi/blogapi.moduleBlogging API callback. Inserts a new blog post as a node.
blogapi_validate_usermodules/blogapi/blogapi.moduleEnsure that the given user has permission to edit a blog.
blog_accessmodules/blog/blog.moduleImplementation of hook_access().
blog_blockmodules/blog/blog.moduleImplementation of hook_block().
blog_page_lastmodules/blog/blog.pages.incMenu callback; displays a Drupal page containing recent blog entries of all users.
blog_page_usermodules/blog/blog.pages.incMenu callback; displays a Drupal page containing recent blog entries of a given user.
blog_page_user_accessmodules/blog/blog.moduleAccess callback for user blog pages.
blog_usermodules/blog/blog.moduleImplementation of hook_user().
book_export_htmlmodules/book/book.pages.incThis function is called by book_export() to generate HTML for export.
book_form_altermodules/book/book.moduleImplementation of hook_form_alter(). Adds the book fieldset to the node form. See alsobook_pick_book_submit()
book_linkmodules/book/book.moduleImplementation of hook_link().
book_nodeapimodules/book/book.moduleImplementation of hook_nodeapi().
comment_accessmodules/comment/comment.moduleThis is *not* a hook_access() implementation. This function is called to determine whether the current user has access to a particular comment.
comment_blockmodules/comment/comment.moduleImplementation of hook_block().
comment_formmodules/comment/comment.moduleGenerate the basic commenting form, for appending to a node or display on a separate page.
comment_form_altermodules/comment/comment.moduleImplementation of hook_form_alter().
comment_linkmodules/comment/comment.moduleImplementation of hook_link().
comment_linksmodules/comment/comment.moduleBuild command links for a comment (e.g.\ edit, reply, delete) with respect to the current user's access permissions.
comment_rendermodules/comment/comment.moduleRenders comment(s).
comment_replymodules/comment/comment.pages.incThis function is responsible for generating a comment reply form. There are several cases that have to be handled, including: replies to comments replies to nodes attempts to reply to nodes that can no longer accept comments respecting access...
comment_savemodules/comment/comment.moduleAccepts a submission of new or changed comment content.
filter_accessmodules/filter/filter.moduleReturns TRUE if the user is allowed to access this format.
filter_formatsmodules/filter/filter.moduleRetrieve a list of input formats.
forum_accessmodules/forum/forum.moduleImplementation of hook_access().
forum_blockmodules/forum/forum.moduleImplementation of hook_block().
hook_accessdeveloper/hooks/node.phpDefine access restrictions.
hook_file_downloaddeveloper/hooks/core.phpControl access to private file downloads and specify HTTP headers.
hook_linkdeveloper/hooks/core.phpDefine internal Drupal links.
hook_nodeapideveloper/hooks/core.phpAct on nodes defined by other modules.
hook_node_grantsdeveloper/hooks/core.phpInform the node access system what permissions the user has.
locale_usermodules/locale/locale.moduleImplementation of hook_user().
menu_form_altermodules/menu/menu.moduleImplementation of hook_form_alter(). Adds menu item fields to the node form.
node_accessmodules/node/node.moduleDetermine whether the current user may perform the given operation on the specified node.
node_access_example_node_grantsdeveloper/examples/node_access_example.moduleImplementation of hook_node_grants().
node_content_accessmodules/node/node.moduleImplementation of hook_access().
node_example_accessdeveloper/examples/node_example.moduleImplementation of hook_access().
node_formmodules/node/node.pages.incGenerate the node add/edit form array.
node_form_altermodules/node/node.moduleImplementation of hook_form_alter().
node_helpmodules/node/node.moduleImplementation of hook_help().
node_revision_overviewmodules/node/node.pages.incGenerate an overview table of older revisions of a node.
node_submitmodules/node/node.modulePrepare node for save and allow modules to make changes.
node_validatemodules/node/node.modulePerform validation checks on the given node.
path_admin_delete_confirmmodules/path/path.admin.incMenu callback; confirms deleting an URL alias
path_form_altermodules/path/path.moduleImplementation of hook_form_alter().
path_nodeapimodules/path/path.moduleImplementation of hook_nodeapi().
poll_accessmodules/poll/poll.moduleImplementation of hook_access().
poll_blockmodules/poll/poll.moduleImplementation of hook_block().
poll_formmodules/poll/poll.moduleImplementation of hook_form().
poll_insertmodules/poll/poll.moduleImplementation of hook_insert().
poll_loadmodules/poll/poll.moduleImplementation of hook_load().
profile_blockmodules/profile/profile.moduleImplementation of hook_block().
profile_browsemodules/profile/profile.pages.incMenu callback; display a list of user information.
profile_category_accessmodules/profile/profile.moduleMenu item access callback - check if a user has access to a profile category.
search_blockmodules/search/search.moduleImplementation of hook_block().
statistics_blockmodules/statistics/statistics.moduleImplementation of hook_block().
statistics_linkmodules/statistics/statistics.moduleImplementation of hook_link().
system_get_module_admin_tasksmodules/system/system.moduleGenerate a list of tasks offered by a specified module.
system_main_admin_pagemodules/system/system.admin.incMenu callback; Provide the administration overview page.
system_requirementsmodules/system/system.installTest and report Drupal installation requirements.
system_theme_select_formmodules/system/system.moduleReturns a fieldset containing the theme select form.
template_preprocessincludes/theme.incAdds a default set of helper variables for preprocess functions and templates. This comes in before any other preprocess function which makes it possible to be used in default theme implementations (non-overriden theme functions).
template_preprocess_aggregator_feed_sourcemodules/aggregator/aggregator.pages.incProcess variables for aggregator-feed-source.tpl.php. See alsoaggregator-feed-source.tpl.php
template_preprocess_poll_resultsmodules/poll/poll.modulePreprocess the poll_results theme hook.
template_preprocess_user_picturemodules/user/user.moduleProcess variables for user-picture.tpl.php.
theme_aggregator_block_itemmodules/aggregator/aggregator.moduleFormat an individual feed item for display in the block.
theme_book_admin_tablemodules/book/book.admin.incTheme function for the book administration page form. See alsobook_admin_table()
theme_get_settingsincludes/theme.incRetrieve an associative array containing the settings for a theme.
theme_usernameincludes/theme.incFormat a username.
translation_form_altermodules/translation/translation.moduleImplementation of hook_form_alter().
translation_nodeapimodules/translation/translation.moduleImplementation of hook_nodeapi().
trigger_access_checkmodules/trigger/trigger.moduleAccess callback for menu system.
update_helpmodules/update/update.moduleImplementation of hook_help().
upload_file_downloadmodules/upload/upload.moduleImplementation of hook_file_download().
upload_linkmodules/upload/upload.moduleImplementation of hook_link().
upload_nodeapimodules/upload/upload.moduleImplementation of hook_nodeapi().
upload_node_form_submitmodules/upload/upload.moduleSave new uploads and store them in the session to be associated to the node on upload_save.
user_accessmodules/user/user.moduleDetermine whether the user has a given privilege.
user_blockmodules/user/user.moduleImplementation of hook_block().
user_build_filter_querymodules/user/user.moduleBuild query for user administration filters based on session.
user_edit_accessmodules/user/user.moduleAccess callback for user account editing.
user_profile_formmodules/user/user.pages.incForm builder; edit a user account or one of their profile categories. See alsouser_profile_form_validate()
user_profile_form_validatemodules/user/user.pages.incValidation function for the user account and profile editing form.
user_registermodules/user/user.moduleForm builder; The user registration form. See alsouser_register_validate()
user_register_submitmodules/user/user.moduleSubmit handler for the user registration form.
user_savemodules/user/user.moduleSave changes to a user account or add a new user.
user_searchmodules/user/user.moduleImplementation of hook_search().
user_user_operationsmodules/user/user.moduleImplementation of hook_user_operations().
_aggregator_has_categoriesmodules/aggregator/aggregator.moduleFind out whether there are any aggregator categories.
_aggregator_page_listmodules/aggregator/aggregator.pages.incPrints an aggregator page listing a number of feed items.
_block_themes_accessmodules/block/block.moduleMenu item access callback - only admin or enabled themes can be accessed
_book_add_form_elementsmodules/book/book.moduleBuild the common elements of the book form for the node and outline forms.
_book_outline_accessmodules/book/book.moduleMenu item access callback - determine if the outline tab is accessible.
_contact_user_tab_accessmodules/contact/contact.moduleDetermine if a user can access to the contact tab.
_menu_check_accessincludes/menu.incCheck access to a menu item using the access callback
_menu_site_is_offlineincludes/menu.incChecks whether the site is off-line for maintenance.
_node_access_join_sqlmodules/node/node.moduleGenerate an SQL join clause for use in fetching a node listing.
_node_access_where_sqlmodules/node/node.moduleGenerate an SQL where clause for use in fetching a node listing.
_poll_menu_accessmodules/poll/poll.moduleCallback function to see if a node is acceptable for poll menu items.
_system_themes_accessmodules/system/system.moduleMenu item access callback - only admin or enabled themes can be accessed.
_tracker_myrecent_accessmodules/tracker/tracker.moduleAccess callback for tracker/%user_uid_optional
_tracker_user_accessmodules/tracker/tracker.moduleAccess callback for user/%user/track
_translation_tab_accessmodules/translation/translation.moduleMenu access callback.

Functions called by user_access()

Namesort iconLocationDescription
db_fetch_objectincludes/database.pgsql.incFetch one result row from the previous query as an object.
db_placeholdersincludes/database.incGenerate placeholders for an array of query arguments of a single type.
db_queryincludes/database.pgsql.incRuns a basic query in the active database.
user_accessmodules/user/user.moduleDetermine whether the user has a given privilege.
 
 

Drupal is a registered trademark of Dries Buytaert.