function social_landing_page_theme_registry_alter in Open Social 8
Same name and namespace in other branches
- 8.2 modules/social_features/social_landing_page/social_landing_page.module \social_landing_page_theme_registry_alter()
- 8.3 modules/social_features/social_landing_page/social_landing_page.module \social_landing_page_theme_registry_alter()
- 8.4 modules/social_features/social_landing_page/social_landing_page.module \social_landing_page_theme_registry_alter()
- 8.5 modules/social_features/social_landing_page/social_landing_page.module \social_landing_page_theme_registry_alter()
Implements hook_theme_registry_alter().
File
- modules/
social_features/ social_landing_page/ social_landing_page.module, line 142 - The Social landing page module.
Code
function social_landing_page_theme_registry_alter(&$theme_registry) {
// Here we put our preprocess function after bootstrap
// preprocess to have content_attributes inside.
$original = $theme_registry['page']['preprocess functions'];
$key = array_search('social_landing_page_preprocess_page', $original, TRUE);
unset($original[$key]);
array_splice($original, ++$key, 0, [
'social_landing_page_preprocess_page',
]);
$theme_registry['page']['preprocess functions'] = $original;
}