40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
/* implements template_preprocess_region() */
|
|
|
|
/*function popsu_preprocess_region(&$variables){
|
|
kint($variables);
|
|
if (isset($variables['region']) && $variables['region'] == 'header_top_right') {
|
|
$variables['attributes']['class'][] = "poopooboy" ;
|
|
}
|
|
}*/
|
|
|
|
/*function popsu_preprocess_views_view_unformatted(&$variables){
|
|
$variables['attributes']['class'][] = "test" ;
|
|
//kint($variables).die();
|
|
|
|
}*/
|
|
|
|
|
|
|
|
/**
|
|
* Add an alternative to file name suggestions the Custom Search form block.
|
|
*
|
|
* Implements hook__suggestions_HOOK_alter().
|
|
* @return array Suggestions.
|
|
*/
|
|
/*function popsu_theme_suggestions_views_view_unformatted_alter(array &$suggestions, array $variables) {
|
|
$suggestions[] = 'views_view__headerView';
|
|
/*if($variables['elements']['#id'] == 'customsearchform'){
|
|
$suggestions[] = 'block__custom_search_form';
|
|
}*/
|
|
//}
|
|
|
|
/*
|
|
* Implements hook__suggestions_HOOK_alter().
|
|
* @return array Suggestions.
|
|
*/
|
|
/*function popsu_theme_suggestions_block_alter(array &$suggestions, array $variables) {
|
|
|
|
if($variables['elements']['#id'] == 'customsearchform'){
|
|
$suggestions[] = 'block__custom_search_form';
|
|
}
|
|
}*/ |