function hook_mefibs_filter_alter in MEFIBS - More exposed forms in blocks 8
Same name and namespace in other branches
- 7 mefibs.api.inc \hook_mefibs_filter_alter()
Alter the filter values that will be passed to the view object.
Parameters
array $filters: An array of filters as key-value pairs (coming from incoming GET or POST request) that should be passed on to the view.
Related topics
1 invocation of hook_mefibs_filter_alter()
- MefibsDisplayExtender::preExecute in lib/
Drupal/ mefibs/ Plugin/ views/ display_extender/ MefibsDisplayExtender.php - Set up any variables on the view prior to execution.
File
- ./
mefibs.api.inc, line 46 - Sample hooks demonstrating usage in Mefibs.
Code
function hook_mefibs_filter_alter(&$filters) {
// This is a dumb example that would effectively break the selection of items
// per page. Only for illustration purposes.
$filters['item_per_page'] = 10;
}