function _potx_save_version in Translation template extractor 5.2
Same name and namespace in other branches
- 8 potx.inc \_potx_save_version()
- 5 potx.inc \_potx_save_version()
- 6.3 potx.inc \_potx_save_version()
- 6 potx.inc \_potx_save_version()
- 6.2 potx.inc \_potx_save_version()
- 7.3 potx.inc \_potx_save_version()
- 7 potx.inc \_potx_save_version()
- 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.
2 string references to '_potx_save_version'
- potx-cli.php in ./
potx-cli.php - potx_select_form_submit in ./
potx.module - Generate translation template or translation file for the requested module.
File
- ./
potx.inc, line 1130 - 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;
}
}