1.20.x layout.module | _layout_include_files() |
Load all include files for modules that implement hook_layout_api().
File
- modules/
layout/ layout.module, line 1380 - The Layout module creates pages and wraps existing pages in layouts.
Code
function _layout_include_files() {
$included = &backdrop_static(__FUNCTION__, FALSE);
if (!$included) {
foreach (module_implements('layout_api') as $module) {
$function = $module . '_layout_api';
$api_info = $function();
if (isset($api_info['file'])) {
include_once (BACKDROP_ROOT . '/' . backdrop_get_path('module', $module) . '/' . $api_info['file']);
}
}
$included = TRUE;
}
}