1 path.module path_get_info()

Get all path information from modules implementing hook_path_info().

File

core/modules/path/path.module, line 588
Enables users to customize URLs and provide automatic URL alias patterns.

Code

function path_get_info() {
  $all_info = backdrop_static(__FUNCTION__);

  if (!isset($info)) {
    module_load_include('inc', 'path', 'path.path');
    $modules = module_implements('path_info');
    foreach ($modules as $module) {
      $callback = $module . '_path_info';
      $module_path_info = $callback();
      foreach ($module_path_info as $path_type => $path_info) {
        $path_info += array(
          'module' => $module,
          'batch file path' => backdrop_get_path('module', $module),
        );
        $all_info[$path_type] = $path_info;
      }
    }
    backdrop_alter('path_info', $all_info);
  }

  return $all_info;
}