hook_views_form_substitutions()
Replace special strings when processing a view with form elements.
Return value
array An associative array where each key is a string to be replaced, and the corresponding value is its replacement. The value will be escaped unless it is already marked safe.
Related topics
- Hooks
- Define functions that alter the behavior of Drupal core.
File
- core/modules/views/views.api.php, line 678
- Describes hooks and plugins provided by the Views module.
Code
function hook_views_form_substitutions() { return array( '<!--views-form-example-substitutions-->' => 'Example Substitution', ); }
Please login to continue.