function hook_less_paths_alter in Less CSS Preprocessor 7.4
Same name and namespace in other branches
- 8 less.api.php \hook_less_paths_alter()
Alter LESS include paths.
Parameters
&string[] $less_paths:
string $system_name:
1 invocation of hook_less_paths_alter()
- less_get_settings in ./
less.module - Returns the compiled list of variables and functions for a module/theme.
File
- ./
less.api.php, line 91 - Hooks provided by the Less module.
Code
function hook_less_paths_alter(array &$less_paths, $system_name) {
if ($system_name === 'less_demo') {
$less_paths[] = drupal_get_path('module', 'less_demo') . '/other_path';
}
}