_update_manager_extract_directory

_update_manager_extract_directory($create = TRUE) Returns the directory where update archive files should be extracted. Parameters $create: (optional) Whether to attempt to create the directory if it does not already exist. Defaults to TRUE. Return value The full path to the temporary directory where update file archives should be extracted. File core/modules/update/update.module, line 671 Handles updates of Drupal core and contributed projects. Code function _update_manager_extract_directo

_update_manager_unique_identifier

_update_manager_unique_identifier() Returns a short unique identifier for this Drupal installation. Return value An eight character string uniquely identifying this Drupal installation. File core/modules/update/update.module, line 652 Handles updates of Drupal core and contributed projects. Code function _update_manager_unique_identifier() { $id = &drupal_static(__FUNCTION__, ''); if (empty($id)) { $id = substr(hash('sha256', Settings::getHashSalt()), 0, 8); } return $id; }

_update_message_text

_update_message_text($msg_type, $msg_reason, $langcode = NULL) Returns the appropriate message text when site is out of date or not secure. These error messages are shared by both update_requirements() for the site-wide status report at admin/reports/status and in the body of the notification email messages generated by update_cron(). Parameters $msg_type: String to indicate what kind of message to generate. Can be either 'core' or 'contrib'. $msg_reason: Integer constant specifying why messag

_update_no_data

_update_no_data() Returns a warning message when there is no data about available updates. File core/modules/update/update.module, line 286 Handles updates of Drupal core and contributed projects. Code function _update_no_data() { $destination = \Drupal::destination()->getAsArray(); return t('No update information available. <a href=":run_cron">Run cron</a> or <a href=":check_manually">check manually</a>.', array( ':run_cron' => \Drupal::url('system.run_c

_update_project_status_sort

_update_project_status_sort($a, $b) Orders projects based on their status. Callback for uasort() within update_requirements(). File core/modules/update/update.module, line 542 Handles updates of Drupal core and contributed projects. Code function _update_project_status_sort($a, $b) { // The status constants are numerically in the right order, so we can // usually subtract the two to compare in the order we want. However, // negative status values should be treated as if they are huge, s

_update_requirement_check

_update_requirement_check($project, $type) Fills in the requirements array. This is shared for both core and contrib to generate the right elements in the array for hook_requirements(). Parameters $project: Array of information about the project we're testing as returned by update_calculate_project_data(). $type: What kind of project this is ('core' or 'contrib'). Return value An array to be included in the nested $requirements array. See also hook_requirements() update_requirements() update

_user_cancel

_user_cancel($edit, $account, $method) Implements callback_batch_operation(). Last step for cancelling a user account. Since batch and session API require a valid user account, the actual cancellation of a user account needs to happen last. Parameters array $edit: An array of submitted form values. \Drupal\user\UserInterface $account: The user ID of the user account to cancel. string $method: The account cancellation method to use. See also user_cancel() File core/modules/user/user.module, li

_user_cancel_session_regenerate

_user_cancel_session_regenerate() Implements callback_batch_finished(). Finished batch processing callback for cancelling a user account. See also user_cancel() File core/modules/user/user.module, line 776 Enables the user registration and login system. Code function _user_cancel_session_regenerate() { // Regenerate the users session instead of calling session_destroy() as we // want to preserve any messages that might have been set. \Drupal::service('session')->migrate(); }

_user_mail_notify

_user_mail_notify($op, $account, $langcode = NULL) Conditionally create and send a notification email when a certain operation happens on the given user account. Parameters string $op: The operation being performed on the account. Possible values: 'register_admin_created': Welcome message for user created by the admin. 'register_no_approval_required': Welcome message when user self-registers. 'register_pending_approval': Welcome message, user pending admin approval. 'password_reset': Passw

_user_role_permissions_update

_user_role_permissions_update($roles) Determine the permissions for one or more roles during update. A separate version is needed because during update the entity system can't be used and in non-update situations the entity system is preferred because of the hook system. Parameters array $roles: An array of role IDs. Return value array An array indexed by role ID. Each value is an array of permission strings for the given role. File core/modules/user/user.module, line 345 Enables the user reg