update.module

Version 1.63 (checked in on 2010/02/17 at 09:08:59 by dries)

The "Update status" module checks for available updates of Drupal core and any installed contributed modules and themes. It warns site administrators if newer releases are available via the system status report (admin/reports/status), the module and theme pages, and optionally via email.

Constants

NameDescription
UPDATE_CURRENTProject is up to date.
UPDATE_DEFAULT_URLURL to check for updates, if a given project doesn't define its own.
UPDATE_FETCH_PENDINGWe need to (re)fetch available update data for this project.
UPDATE_MAX_FETCH_ATTEMPTSMaximum number of attempts to fetch available update data from a given host.
UPDATE_MAX_FETCH_TIMEMaximum number of seconds to try fetching available update data at a time.
UPDATE_NOT_CHECKEDProject's status cannot be checked.
UPDATE_NOT_CURRENTProject has a new release available, but it is not a security release.
UPDATE_NOT_FETCHEDThere was a failure fetching available update data for this project.
UPDATE_NOT_SECUREProject is missing security update(s).
UPDATE_NOT_SUPPORTEDCurrent release is no longer supported by the project maintainer.
UPDATE_REVOKEDCurrent release has been unpublished and is no longer available.
UPDATE_UNKNOWNNo available update data was found for project.

Functions

NameDescription
theme_update_last_checkRender the HTML to display the last time we checked for update data.
update_cache_clear_submitHelper function for use as a form submit callback.
update_create_fetch_taskWrapper to load the include file and then create a new fetch task.
update_cronImplements hook_cron().
update_fetch_dataWrapper to load the include file and then attempt to fetch update data.
update_flush_cachesImplements hook_flush_caches().
update_form_system_modules_alterImplements hook_form_FORM_ID_alter().
update_get_availableInternal helper to try to get the update information from the cache if possible, and to refresh the cache when necessary.
update_helpImplements hook_help().
update_mailImplements hook_mail().
update_manager_accessDetermine if the current user can access the updater menu items.
update_menuImplements hook_menu().
update_refreshWrapper to load the include file and then refresh the release data.
update_themeImplements hook_theme().
update_themes_disabledImplements hook_themes_disabled().
update_themes_enabledImplements hook_themes_enabled().
_update_cache_clearInvalidates cached data relating to update status.
_update_cache_getRetrieve data from the private update status cache table.
_update_cache_setStore data in the private update status cache table.
_update_get_cached_available_releasesReturn all currently cached data about available releases for all projects.
_update_get_cache_multipleReturn an array of cache items with a given cache ID prefix.
_update_message_textHelper function to return the appropriate message text when the site is out of date or missing a security update.
_update_no_dataPrints a warning message when there is no data about available updates.
_update_project_status_sortPrivate sort function to order projects based on their status.