update.module
Версия 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.
Константы
Имя | Описание |
---|---|
UPDATE_CURRENT | Проект в актуальном состоянии. |
UPDATE_DEFAULT_URL | URL to check for updates, if a given project doesn't define its own. |
UPDATE_MAX_FETCH_ATTEMPTS | Максимальное количество попыток извлечь данные доступных обновлений с данного хоста. |
UPDATE_NOT_CHECKED | Статус проекта не может быть проверен. |
UPDATE_NOT_CURRENT | Доступна новая версия проекта, но это не обновление безопасности. |
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 | Текущий релиз больше не поддерживается сопровождающим. |
UPDATE_REVOKED | Текущий релиз был снят с публикации и больше не доступен. |
UPDATE_UNKNOWN | В проекте нет доступных обновлений. |
Функции
Имя | Описание |
---|---|
update_cron | Реализация hook_cron(). |
update_flush_caches | Исполнение 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 | Реализация hook_help(). |
update_invalidate_cache | Очищает кеш данных модуля обновлений. |
update_mail | Implementation of hook_mail(). |
update_menu | Реализация hook_menu(). |
update_refresh | Wrapper to load the include file and then refresh the release data. |
update_requirements | Implementation of hook_requirements(). See also_update_message_text() |
update_theme | Implementation of the hook_theme() registry. |
_update_cache_clear | Аннулирование индивидуальных кэшированных данных относящихся к обновлению статуса. |
_update_cache_get | Поиск данных из индивидуальной таблицы обновления статуса кэша. |
_update_cache_set | Хранение данных в индивидуальной таблице кэша обновления статуса. |
_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. See alsoupdate_requirements() |
_update_requirement_check | Private helper method to fill in the requirements array. |