1 template.php | basis_preprocess_layout(&$variables) |
Prepares variables for layout templates.
See also
File
- core/
themes/ basis/ template.php, line 102 - Basis preprocess functions and theme function overrides.
Code
function basis_preprocess_layout(&$variables) {
if ($variables['is_front']) {
// Add a special front-page class.
$variables['classes'][] = 'layout-front';
// Add a special front-page template suggestion.
$original = $variables['theme_hook_original'];
$variables['theme_hook_suggestions'][] = $original . '__front';
$variables['theme_hook_suggestion'] = $original . '__front';
}
}