You are here

function _potx_save_version in Translation template extractor 6.2

Same name and namespace in other branches
  1. 8 potx.inc \_potx_save_version()
  2. 5.2 potx.inc \_potx_save_version()
  3. 5 potx.inc \_potx_save_version()
  4. 6.3 potx.inc \_potx_save_version()
  5. 6 potx.inc \_potx_save_version()
  6. 7.3 potx.inc \_potx_save_version()
  7. 7 potx.inc \_potx_save_version()
  8. 7.2 potx.inc \_potx_save_version()

Default $version_callback used by the potx system. Saves values to a global array to reduce memory consumption problems when passing around big chunks of values.

Parameters

$value: The ersion number value of $file. If NULL, the collected values are returned.

$file: Name of file where the version information was found.

1 string reference to '_potx_save_version'
potx_select_form_submit in ./potx.module
Generate translation template or translation file for the requested component.

File

./potx.inc, line 1206
Extraction API used by the web and command line interface.

Code

function _potx_save_version($value = NULL, $file = NULL) {
  global $_potx_versions;
  if (isset($value)) {
    $_potx_versions[$file] = $value;
  }
  else {
    return $_potx_versions;
  }
}