function hook_views_form_substitutions in Views (for Drupal 7) 8.3
Same name and namespace in other branches
- 6.3 docs/docs.php \hook_views_form_substitutions()
- 7.3 views.api.php \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.
Related topics
1 invocation of hook_views_form_substitutions()
- theme_views_form_views_form in theme/
theme.inc - Theme function for a View with form elements: replace the placeholders.
File
- ./
views.api.php, line 337 - Describes hooks and plugins provided by the Views module.
Code
function hook_views_form_substitutions() {
return array(
'<!--views-form-example-substitutions-->' => 'Example Substitution',
);
}