You are here

function _potx_schema_store_lookup in Translation template extractor 7.3

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

Store a config schema file's matching keys (e.g. field.field.*.*.*), and the module that contains the schema, 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 131

Code

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