function hook_less_variables_SYSTEM_NAME_alter in Less CSS Preprocessor 7.4
Same name and namespace in other branches
- 8 less.api.php \hook_less_variables_SYSTEM_NAME_alter()
- 7.3 less.api.php \hook_less_variables_SYSTEM_NAME_alter()
Alter LESS variables provided by other modules or themes.
This is called after hook_less_variables_alter().
Parameters
&string[] $less_variables: Flat associative array of variables, where key is variable name.
See also
1 function implements hook_less_variables_SYSTEM_NAME_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- less_demo_less_variables_less_demo_alter in less_demo/
less_demo.less.inc - Implements hook_less_variables_SYSTEM_NAME_alter().
File
- ./
less.api.php, line 68 - Hooks provided by the Less module.
Code
function hook_less_variables_SYSTEM_NAME_alter(array &$less_variables) {
$less_variables['@variable_name_2'] = 'lighten(@variable_name_1, 20%)';
}