update.module

Version 1.17.2.5 (checked in on 2009/06/09 at 11:08:32 by goba)

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_MAX_FETCH_ATTEMPTSMaximum number of attempts to fetch available update data from a given host.
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
update_cronImplementation of hook_cron().
update_flush_cachesImplementation of hook_flush_caches().
update_form_alterImplementation of hook_form_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_helpImplementation of hook_help().
update_invalidate_cacheInvalidates all cached data relating to update status.
update_mailImplementation of hook_mail().
update_menuImplementation of hook_menu().
update_refreshWrapper to load the include file and then refresh the release data.
update_requirementsImplementation of hook_requirements().
update_themeImplementation of the hook_theme() registry.
_update_cache_clearInvalidates specific 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_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.
_update_requirement_checkPrivate helper method to fill in the requirements array.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.