function _potx_merge_processed_schema in Translation template extractor 8
Same name and namespace in other branches
- 7.3 potx.inc \_potx_merge_processed_schema()
Merge a module's processed schema with the global schema storage.
1 call to _potx_merge_processed_schema()
- _potx_process_module_schemas in ./
potx.inc - Recursively process and merge the schema required for parsing shipped config.
File
- ./
potx.inc, line 2999 - Extraction API used by the web and command line interface.
Code
function _potx_merge_processed_schema($schema) {
global $_potx_processed_schema;
$_potx_processed_schema['translatables'] = array_merge($_potx_processed_schema['translatables'], $schema['translatables']);
$_potx_processed_schema['types'] = array_merge($_potx_processed_schema['types'], $schema['types']);
$_potx_processed_schema['mappings'] = array_merge($_potx_processed_schema['mappings'], $schema['mappings']);
$_potx_processed_schema['contexts'] = array_merge($_potx_processed_schema['contexts'], $schema['contexts']);
}