Commit c3b9d62f by Manzar Hussain

custom theme function

parent 80ad5696
......@@ -31,14 +31,20 @@ function envigo_form_search_block_form_alter(&$form, &$form_state) {
$form['actions']['submit']['#attributes']['class'][] = 'search-button';
}
function envigo_theme_suggestions_views_view_alter(array &$suggestions, array $variables) {
/*function envigo_theme_suggestions_views_view_alter(array &$suggestions, array $variables) {
// If you want you can add a template suggestion for all views
// based on their ID:
$suggestions[] = sprintf('views_view__%s', $variables['view']->id());
// Or you can check the ID, add suggestions, do whatever you want
// ...
}
}*/
function envigo_theme_suggestions_views_view(array $variables) {
return [
'views_view_display__' . $variables['view']->current_display,
];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment