You are here

function less_hook_info in Less CSS Preprocessor 7.4

Same name and namespace in other branches
  1. 8 less.module \less_hook_info()
  2. 7.2 less.module \less_hook_info()

Implements hook_hook_info().

File

./less.module, line 28
Handles compiling of .less files.

Code

function less_hook_info() {
  $less_hooks = array(
    'engines',
    'variables',
    'paths',
    'functions',
  );
  $hooks = array();

  /**
   * We don't have to worry about less_HOOK_SYSTEM_NAME_alter variations here
   * as less_HOOK_alter is run immediately before and should include the
   * MODULE.less.inc file containing any
   * less_HOOK_SYSTEM_NAME_alter() implementations.
   */
  foreach ($less_hooks as $hook) {
    $hooks[] = 'less_' . $hook;
    $hooks[] = 'less_' . $hook . '_alter';
  }
  return array_fill_keys($hooks, array(
    'group' => 'less',
  ));
}