C:/drupal/modules/update/update.fetch.inc File Reference

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 ()


Detailed Description

Code required only when fetching information about available updates.

Definition in file update.fetch.inc.


Function Documentation

_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.

Parameters:
$project The array of project information from update_get_projects().
$site_key The anonymous site key hash (optional).
See also:
update_refresh()

update_get_projects()

Definition at line 81 of file update.fetch.inc.

References $name, $url, drupal_urlencode(), and variable_get().

Referenced by _update_refresh().

Here is the call graph for this function:

_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.

See also:
update_requirements()

Definition at line 110 of file update.fetch.inc.

References $status, $type, drupal_mail(), language_default(), and variable_get().

Here is the call graph for this function:

_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().

Here is the call graph for this function:

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().

Here is the call graph for this function:


Generated on Mon Jun 2 15:08:33 2008 for SimpleTest by  1.5.5