You are here

function hook_strongarm_alter in Strongarm 6.2

Adjust the definition of a Strongarm variable before it is imported.

Note that this is applied before caching.

Parameters

$strongarms: Array of all strongarm-exported variable definitions. Keyed on variable name. The elements of each strongarm object in the array are:

  • disabled: Whether the strongarm variable should be ignored.
  • api_version: The version of the Strongarm API for the variable definition.]
  • name: Name of the variable, repeated.
  • value: The value specified for the variable.
  • export_module: The name of the module that is exporting the variable.

File

./strongarm.api.php, line 62
Hooks provided by Strongarm.

Code

function hook_strongarm_alter(&$strongarms) {
  $strongarms['variable_name']->value = 'variable_better_value';
}