Task/ReportHookData.php
function getHookDeclarations() {
    $data = $this->listHookData();

    $return = array();
    foreach ($data as $group => $hooks) {
      foreach ($hooks as $key => $hook) {
        // Standardize to lowercase.
        $hook_name = strtolower($hook['name']);

        $return[$hook_name] = $hook;
      }
    }

    return $return;
  }
function getHookDeclarations() {
    $data = $this->listHookData();

    $return = array();
    foreach ($data as $group => $hooks) {
      foreach ($hooks as $key => $hook) {
        // Standardize to lowercase.
        $hook_name = strtolower($hook['name']);

        $return[$hook_name] = $hook;
      }
    }

    return $return;
  }
function getHookDeclarations ( ) { $ data = $ this -> listHookData ( ) ; $ return = array ( ) ; foreach ( $ data as $ group => $ hooks ) { foreach ( $ hooks as $ key => $ hook ) { // Standardize to lowercase. $ hook_name = strtolower ( $ hook [ 'name' ] ) ; $ return [ $ hook_name ] = $ hook ; } } return $ return ; }
Get stored hook declarations, keyed by hook name, with destination.

@return
An array of hook information, keyed by the full name of the hook
standardized to lower case.
Each item has the keys:
- 'type': One of 'hook' or 'callback'.
- 'name': The full name of the hook in the original case,
eg 'hook_form_FORM_ID_alter'.
- 'definition': The full function declaration.
- 'description': The first line of the hook docblock.
- 'destination': The file this hook should be placed in, as a module file
pattern such as '%module.module'.
- 'dependencies': TODO!
- 'group': Erm write this later.
- 'file_path': The absolute path of the file this definition was taken
from.
- 'body': The hook function body, taken from the API file.
Get stored hook declarations keyed by hook name with destination .