Merge pull request #8006 from yashodha/CRM-18263
[civicrm-core.git] / api / v3 / Job.php
index 8bc0de5216cbb6cb151df894a8bb1dd45039d355..c68c9b9140da4a24d260ec78b92ec86e51793320 100644 (file)
@@ -639,3 +639,14 @@ function civicrm_api3_job_group_rebuild($params) {
 
   return civicrm_api3_create_success();
 }
+
+/**
+ * Check for CiviCRM software updates.
+ *
+ * Anonymous site statistics are sent back to civicrm.org during this check.
+ */
+function civicrm_api3_job_version_check() {
+  $vc = new CRM_Utils_VersionCheck();
+  $vc->fetch();
+  return civicrm_api3_create_success();
+}