popsuNoteTheme 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* implements template_preprocess_region() */
  2. /*function popsu_preprocess_region(&$variables){
  3. kint($variables);
  4. if (isset($variables['region']) && $variables['region'] == 'header_top_right') {
  5. }
  6. }*/
  7. /*function popsu_preprocess_views_view_unformatted(&$variables){
  8. $variables['attributes']['class'][] = "test" ;
  9. //kint($variables).die();
  10. }*/
  11. /**
  12. * Add an alternative to file name suggestions the Custom Search form block.
  13. *
  14. * Implements hook__suggestions_HOOK_alter().
  15. * @return array Suggestions.
  16. */
  17. /*function popsu_theme_suggestions_views_view_unformatted_alter(array &$suggestions, array $variables) {
  18. $suggestions[] = 'views_view__headerView';
  19. /*if($variables['elements']['#id'] == 'customsearchform'){
  20. $suggestions[] = 'block__custom_search_form';
  21. }*/
  22. //}
  23. /*
  24. * Implements hook__suggestions_HOOK_alter().
  25. * @return array Suggestions.
  26. */
  27. /*function popsu_theme_suggestions_block_alter(array &$suggestions, array $variables) {
  28. if($variables['elements']['#id'] == 'customsearchform'){
  29. $suggestions[] = 'block__custom_search_form';
  30. }
  31. }*/