You are here

function _potx_schema_store_lookup in Translation template extractor 8

Same name and namespace in other branches
  1. 7.3 potx.local.inc \_potx_schema_store_lookup()

Store config schema file's matching keys and their module in a lookup table.

Parameters

array $keys: List of config matching keys in a config schema file.

string $module_name: Name of the module containing the schema.

1 string reference to '_potx_schema_store_lookup'
potx_local_init in ./potx.local.inc
Initialize potx to run locally, e.g. by drush.

File

./potx.local.inc, line 136
Hook implementations for this module.

Code

function _potx_schema_store_lookup(array $keys, $module_name) {
  global $_potx_schema_lookup;
  $_potx_schema_lookup = array_merge($_potx_schema_lookup, array_fill_keys($keys, $module_name));
}