+// Add updates notes for given version
+function ADD_EXTENSION_NOTES ($ver, &$UPDATE_NOTES) {
+ // Init notes/content
+ $out = ""; $content = array();
+
+ // Is do we have verbose output enabled?
+ if ((getConfig('verbose_sql') == "Y") || (!EXT_IS_ACTIVE("sql_patches"))) {
+
+ // Update notes found?
+ if (!empty($UPDATE_NOTES)) {
+ // Update notes found
+ $content = array(
+ 'ver' => $ver,
+ 'notes' => $UPDATE_NOTES
+ );
+ $UPDATE_NOTES = "";
+ } elseif (($ver == "0.0") || ($ver == "0.0.0")) {
+ // Initial release
+ $content = array(
+ 'ver' => $ver,
+ 'notes' => INITIAL_RELEASE
+ );
+ } else {
+ // No update notes found!
+ $content = array(
+ 'ver' => $ver,
+ 'notes' => NO_UPDATE_NOTES
+ );
+ }
+
+ // Load template
+ $out = LOAD_TEMPLATE("admin_ext_notes", true, $content);
+ } // END - if
+
+ // Return the output
+ return $out;
+}
+