1.12.x views.api.php hook_views_form_substitutions()
1.10.x views.api.php hook_views_form_substitutions()
1.11.x views.api.php hook_views_form_substitutions()
1.7.x views.api.php hook_views_form_substitutions()

This hook is called to get a list of placeholders and their substitutions, used when preprocessing a View with form elements.

Return value

An array with keys being the strings to replace, and the values the strings to replace them with.

Related topics

File

modules/views/views.api.php, line 686
Describe hooks provided by the Views module.

Code

function hook_views_form_substitutions() {
  return array(
    '<!--views-form-example-substitutions-->' => 'Example Substitution',
  );
}