hook_filter_info_alter(&$info)
Perform alterations on filter definitions.
Parameters
array $info: Array of information on filters exposed by filter plugins.
Related topics
- Hooks
- Define functions that alter the behavior of Drupal core.
File
- core/modules/filter/filter.api.php, line 19
- Hooks provided by the Filter module.
Code
1 2 3 4 5 6 | function hook_filter_info_alter(& $info ) { // Alter the default settings of the URL filter provided by core. $info [ 'filter_url' ][ 'default_settings' ] = array ( 'filter_url_length' => 100, ); } |
Please login to continue.