hook_filter_info_alter
function hook_filter_info_alter
hook_filter_info_alter(&$info)
Perform alterations on filter definitions.
Parameters
$info: Array of information on filters exposed by hook_filter_info() implementations.
Related topics
File
- modules/filter/filter.api.php, line 109
- Hooks provided by the Filter module.
Code
function hook_filter_info_alter(&$info) { // Replace the PHP evaluator process callback with an improved // PHP evaluator provided by a module. $info['php_code']['process callback'] = 'my_module_php_evaluator'; // Alter the default settings of the URL filter provided by core. $info['filter_url']['default settings'] = array( 'filter_url_length' => 100, ); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!filter!filter.api.php/function/hook_filter_info_alter/7.x