_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

_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

_update_manager_check_backends

_update_manager_check_backends(&$form, $operation) Checks for file transfer backends and prepares a form fragment about them. Parameters array $form: Reference to the form array we're building. string $operation: The update manager operation we're in the middle of. Can be either 'update' or 'install'. Use to provide operation-specific interface text. Return value TRUE if the update manager should continue to the next step in the workflow, or FALSE if we've hit a fatal configuration and mu

_update_manager_cache_directory

_update_manager_cache_directory($create = TRUE) Returns the directory where update archive files should be cached. 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 cached. File core/modules/update/update.module, line 693 Handles updates of Drupal core and contributed projects. Code function _update_manager_cache_directory($create

_update_cron_notify

_update_cron_notify() Performs any notifications that should be done once cron fetches new data. This method checks the status of the site using the new data and, depending on the configuration of the site, notifies administrators via email if there are new releases or missing security updates. See also update_requirements() File core/modules/update/update.fetch.inc, line 17 Code required only when fetching information about available updates. Code function _update_cron_notify() { $update_

_update_manager_access

_update_manager_access() Resolves if the current user can access updater menu items. It both enforces the 'administer software updates' permission and the global kill switch for the authorize.php script. Return value TRUE if the current user can access the updater menu items; FALSE otherwise. File core/modules/update/update.module, line 180 Handles updates of Drupal core and contributed projects. Code function _update_manager_access() { return Settings::get('allow_authorize_operations', TR

_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_batch_create_message

_update_batch_create_message(&$project_results, $message, $success = TRUE) Creates a structure of log messages. Parameters array $project_results: An associative array of results from the batch operation. string $message: A string containing a log message. bool $success: (optional) TRUE if the operation the message is about was a success, FALSE if there were errors. Defaults to TRUE. File core/modules/update/update.authorize.inc, line 350 Callbacks and related functions invoked by authoriz

_update_authorize_clear_update_status

_update_authorize_clear_update_status() Clears available update status data. Since this function is run at such a low bootstrap level, the Update Manager module is not loaded. So, we can't just call update_storage_clear(). However, the key-value backend is available, so we just call that. Note that we do not want to delete items related to currently pending fetch attempts. See also update_authorize_update_batch_finished() update_storage_clear() File core/modules/update/update.authorize.inc, li

_tracker_add

_tracker_add($nid, $uid, $changed) Updates indexing tables when a node is added, updated, or commented on. Parameters int $nid: A node ID. int $uid: The node or comment author. int $changed: The node updated timestamp or comment timestamp. File core/modules/tracker/tracker.module, line 242 Tracks recent content posted by a user or users. Code function _tracker_add($nid, $uid, $changed) { // @todo This should be actually filtering on the desired language and just // fall back to the def