Task/ReportHookData.php
function listHookNames($style = 'full') {
    $data = $this->getHookDeclarations();
    $names = array_keys($data);

    if ($style == 'short') {
      foreach ($names as $key => $hook_name) {
        $names[$key] = str_replace('hook_', '', $hook_name);
      }
    }

    return $names;
  }
function listHookNames($style = 'full') {
    $data = $this->getHookDeclarations();
    $names = array_keys($data);

    if ($style == 'short') {
      foreach ($names as $key => $hook_name) {
        $names[$key] = str_replace('hook_', '', $hook_name);
      }
    }

    return $names;
  }
function listHookNames ( $ style = 'full' ) { $ data = $ this -> getHookDeclarations ( ) ; $ names = array_keys ( $ data ) ; if ( $ style == 'short' ) { foreach ( $ names as $ key => $ hook_name ) { $ names [ $ key ] = str_replace ( 'hook_' , '' , $ hook_name ) ; } } return $ names ; }
Get just hook names.

@param $style
Whether to return hook names as just 'init' or 'hook_init'. One of:
- 'short': Return short names, i.e., 'init'.
- 'full': Return full hook names, i.e., 'hook_init'.

@return
A flat array of strings.
Get just hook names .