Go to the source code of this file.
Classes | |
class | update_xml_parser |
Functions | |
update_manual_status () | |
_update_refresh () | |
_update_build_fetch_url ($project, $site_key= '') | |
_update_cron_notify () |
Definition in file update.fetch.inc.
_update_build_fetch_url | ( | $ | project, | |
$ | site_key = '' | |||
) |
Generates the URL to fetch information about project updates.
This figures out the right URL to use, based on the project's .info file and the global defaults. Appends optional query arguments when the site is configured to report usage stats.
$project | The array of project information from update_get_projects(). | |
$site_key | The anonymous site key hash (optional). |
Definition at line 81 of file update.fetch.inc.
References $name, $url, drupal_urlencode(), and variable_get().
Referenced by _update_refresh().
_update_cron_notify | ( | ) |
Perform 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, notifys administrators via email if there are new releases or missing security updates.
Definition at line 110 of file update.fetch.inc.
References $status, $type, drupal_mail(), language_default(), and variable_get().
_update_refresh | ( | ) |
Fetch project info via XML from a central server.
Definition at line 25 of file update.fetch.inc.
References $base_url, $url, _update_build_fetch_url(), cache_set(), drupal_get_private_key(), drupal_http_request(), l(), module_invoke(), module_load_include(), t(), update_get_projects(), variable_get(), variable_set(), and watchdog().
Referenced by update_manual_status().
update_manual_status | ( | ) |
Callback to manually check the update status without cron.
Definition at line 12 of file update.fetch.inc.
References _update_refresh(), drupal_goto(), drupal_set_message(), and t().