user_user_logout

user_user_logout($account) Implements hook_user_logout(). File core/modules/user/user.module, line 561 Enables the user registration and login system. Code function user_user_logout($account) { // Reset static cache of default variables in template_preprocess() to reflect // the new user. drupal_static_reset('template_preprocess'); }

user_user_view

user_user_view(array &$build, UserInterface $account, EntityViewDisplayInterface $display) Implements hook_ENTITY_TYPE_view() for user entities. File core/modules/user/user.module, line 372 Enables the user registration and login system. Code function user_user_view(array &$build, UserInterface $account, EntityViewDisplayInterface $display) { if ($display->getComponent('member_for')) { $build['member_for'] = array( '#type' => 'item', '#markup' => '<h4 cla

user_user_login

user_user_login($account) Implements hook_user_login(). File core/modules/user/user.module, line 552 Enables the user registration and login system. Code function user_user_login($account) { // Reset static cache of default variables in template_preprocess() to reflect // the new user. drupal_static_reset('template_preprocess'); }

user_user_role_delete

user_user_role_delete(RoleInterface $role) Implements hook_ENTITY_TYPE_delete() for user_role entities. File core/modules/user/user.module, line 1019 Enables the user registration and login system. Code function user_user_role_delete(RoleInterface $role) { // Delete role references for all users. $user_storage = \Drupal::entityManager()->getStorage('user'); $user_storage->deleteRoleReferences(array($role->id())); // Ignore the authenticated and anonymous roles or the role is

user_user_role_insert

user_user_role_insert(RoleInterface $role) Implements hook_ENTITY_TYPE_insert() for user_role entities. File core/modules/user/user.module, line 982 Enables the user registration and login system. Code function user_user_role_insert(RoleInterface $role) { // Ignore the authenticated and anonymous roles or the role is being synced. if (in_array($role->id(), array(RoleInterface::AUTHENTICATED_ID, RoleInterface::ANONYMOUS_ID)) || $role->isSyncing()) { return; } $add_id = 'user

user_schema

user_schema() Implements hook_schema(). File core/modules/user/user.install, line 11 Install, update and uninstall functions for the user module. Code function user_schema() { $schema['users_data'] = array( 'description' => 'Stores module data as key/value pairs per user.', 'fields' => array( 'uid' => array( 'description' => 'Primary key: {users}.uid for user.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE,

user_theme

user_theme() Implements hook_theme(). File core/modules/user/user.module, line 97 Enables the user registration and login system. Code function user_theme() { return array( 'user' => array( 'render element' => 'elements', ), 'username' => array( 'variables' => array('account' => NULL, 'attributes' => array(), 'link_options' => array()), ), ); }

user_role_revoke_permissions

user_role_revoke_permissions($rid, array $permissions = array()) Revoke permissions from a user role. Parameters mixed $rid: The ID of a user role to alter. array $permissions: (optional) A list of permission names to revoke. See also user_role_change_permissions() user_role_grant_permissions() File core/modules/user/user.module, line 1160 Enables the user registration and login system. Code function user_role_revoke_permissions($rid, array $permissions = array()) { // Revoke permissions

user_template_preprocess_default_variables_alter

user_template_preprocess_default_variables_alter(&$variables) Implements hook_template_preprocess_default_variables_alter(). See also user_user_login() user_user_logout() File core/modules/user/user.module, line 435 Enables the user registration and login system. Code function user_template_preprocess_default_variables_alter(&$variables) { $user = \Drupal::currentUser(); $variables['user'] = clone $user; // Remove password and session IDs, since themes should not need nor see

user_role_names

user_role_names($membersonly = FALSE, $permission = NULL) Retrieves the names of roles matching specified conditions. Parameters bool $membersonly: (optional) Set this to TRUE to exclude the 'anonymous' role. Defaults to FALSE. string|null $permission: (optional) A string containing a permission. If set, only roles containing that permission are returned. Defaults to NULL, which returns all roles. Return value array An associative array with the role id as the key and the role name as value.