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
| Name | Description |
|---|---|
| UPDATE_CURRENT | Project is up to date. |
| UPDATE_DEFAULT_URL | URL to check for updates, if a given project doesn't define its own. |
| UPDATE_MAX_FETCH_ATTEMPTS | Maximum number of attempts to fetch available update data from a given host. |
| UPDATE_NOT_CHECKED | Project's status cannot be checked. |
| UPDATE_NOT_CURRENT | Project has a new release available, but it is not a security release. |
| UPDATE_NOT_FETCHED | There was a failure fetching available update data for this project. |
| UPDATE_NOT_SECURE | Project is missing security update(s). |
| UPDATE_NOT_SUPPORTED | Current release is no longer supported by the project maintainer. |
| UPDATE_REVOKED | Current release has been unpublished and is no longer available. |
| UPDATE_UNKNOWN | No available update data was found for project. |
Functions
| Name | Description |
|---|---|
| update_cron | Implementation of hook_cron(). |
| update_flush_caches | Implementation of hook_flush_caches(). |
| update_form_alter | Implementation of hook_form_alter(). |
| update_get_available | Internal helper to try to get the update information from the cache if possible, and to refresh the cache when necessary. |
| update_help | Implementation of hook_help(). |
| update_invalidate_cache | Invalidates all cached data relating to update status. |
| update_mail | Implementation of hook_mail(). |
| update_menu | Implementation of hook_menu(). |
| update_refresh | Wrapper to load the include file and then refresh the release data. |
| update_requirements | Implementation of hook_requirements(). |
| update_theme | Implementation of the hook_theme() registry. |
| _update_cache_clear | Invalidates specific cached data relating to update status. |
| _update_cache_get | Retrieve data from the private update status cache table. |
| _update_cache_set | Store data in the private update status cache table. |
| _update_message_text | Helper function to return the appropriate message text when the site is out of date or missing a security update. |
| _update_no_data | Prints a warning message when there is no data about available updates. |
| _update_project_status_sort | Private sort function to order projects based on their status. |
| _update_requirement_check | Private helper method to fill in the requirements array. |
