1 layout.module | layout_flexible_template_load($flexible_template_name = NULL) |
Load an individual flexible template.
Parameters
string $flexible_template_name: The machine name of the template to load.
Return value
LayoutFlexibleTemplate|false:
File
- core/
modules/ layout/ layout.module, line 2409 - The Layout module creates pages and wraps existing pages in layouts.
Code
function layout_flexible_template_load($flexible_template_name = NULL) {
$all_templates = layout_flexible_template_load_all();
if (isset($all_templates[$flexible_template_name])) {
return $all_templates[$flexible_template_name];
}
else {
return FALSE;
}
}