function hook_angularjs_filters_alter in AngularJS 7
Alter the list of filters exposed by any module
Parameters
array $filters: The list of filters exposed by any module
string $version: The version of AngularJS
Related topics
File
- ./
angularjs.api.inc, line 105 - This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.
Code
function hook_angularjs_filters_alter(&$filters, $version) {
foreach ($filters as $key => &$value) {
$value['scope'] = 'footer';
}
}