You are here

function social_landing_page_theme_registry_alter in Open Social 8.2

Same name and namespace in other branches
  1. 8 modules/social_features/social_landing_page/social_landing_page.module \social_landing_page_theme_registry_alter()
  2. 8.3 modules/social_features/social_landing_page/social_landing_page.module \social_landing_page_theme_registry_alter()
  3. 8.4 modules/social_features/social_landing_page/social_landing_page.module \social_landing_page_theme_registry_alter()
  4. 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 144
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;
}