You are here

function module_builder_get_hook_data_flat in Module Builder 6.2

Same name and namespace in other branches
  1. 7 includes/process.inc \module_builder_get_hook_data_flat()

Helper for API functions that don't care about file grouping.

1 call to module_builder_get_hook_data_flat()
module_builder_get_hook_names in includes/process.inc
Get just hook names.

File

includes/process.inc, line 79
Module builder code processing code.

Code

function module_builder_get_hook_data_flat($dir = NULL) {
  $data = module_builder_get_hook_data($dir);
  foreach ($data as $group => $hooks) {
    foreach ($hooks as $key => $hook) {
      $return[$hook['name']] = $hook;
    }
  }
  return $return;
}