function hook_less_variables_alter in Less CSS Preprocessor 7.4
Same name and namespace in other branches
- 8 less.api.php \hook_less_variables_alter()
- 7.3 less.api.php \hook_less_variables_alter()
Alter LESS variables provided by other modules or themes.
This is called before hook_less_variables_SYSTEM_NAME_alter().
Parameters
&string[] $less_variables: Flat associative array of variables, where key is variable name.
string $system_name: A string of the system_name of the module or theme that this applies to.
See also
hook_less_variables_SYSTEM_NAME_alter()
1 function implements hook_less_variables_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_alter in less_demo/
less_demo.less.inc - Implements hook_less_variables_alter().
1 invocation of hook_less_variables_alter()
- less_get_settings in ./
less.module - Returns the compiled list of variables and functions for a module/theme.
File
- ./
less.api.php, line 50 - Hooks provided by the Less module.
Code
function hook_less_variables_alter(array &$less_variables, $system_name) {
if ($system_name === 'less_demo') {
$less_variables['@variable_name_1'] = '#ddd';
}
}