function update_status_get_install_status_url

7.x update_status.module update_status_get_install_status_url()
6.x update_status.module update_status_get_install_status_url()
4.x update_status.module update_status_get_install_status_url()
5.x update_status.module update_status_get_install_status_url()

Returns a URL containing install statuses for all installed modules on this site.

1 call to update_status_get_install_status_url()
update_status_perform_check in modules/update_status/update_status.module
This function actually performs the update status check with getflightpath.com

File

modules/update_status/update_status.module, line 208
The update status module file.

Code

function update_status_get_install_status_url() {
  $rtn = "";

  $domain = "getflightpath.com";


  $rtn .= "https://$domain/check-update-status?pa=cv&st=" . urlencode(fp_token());
  $rtn .= "&u=" . urlencode($GLOBALS ["fp_system_settings"]["base_url"]);
  $rtn .= "&c=" . FLIGHTPATH_CORE;

  // These core modules do not have version numbers, so we will skip them.
  $ignore_core_modules = array(
    "admin", "advise", "announcements", "blank_degrees", "blocks", "comments", "content", "course_search", "stats",
    "student_search", "system", "update_status", "tinymce", "user",
  );

  foreach ($GLOBALS ["fp_system_settings"]["modules"] as $module => $details) {
    if (in_array($module, $ignore_core_modules)) {
      continue;
    }
    $rtn .= "&" . "modules[" . urlencode($module) . "]=" . urlencode($details ["version"]);
  }

  // Add FP version string.
  $rtn .= "&" . "modules[" . urlencode("flightpath") . "]=" . urlencode(FLIGHTPATH_CORE . '-' . FLIGHTPATH_VERSION);

  return $rtn;
}