You are here

function template_preprocess_faq_page in Frequently Asked Questions 8

Theme function for faq page wrapper divs.

File

./faq.module, line 159
The FAQ module allows users to create a FAQ page, with questions and answers displayed in different styles, according to the settings.

Code

function template_preprocess_faq_page(&$variables) {
  $faq_settings = \Drupal::config('faq.settings');
  if ($faq_settings
    ->get('show_expand_all')) {
    $variables['faq_expand'] = true;
  }
  else {
    $variables['faq_expand'] = false;
  }
}