function 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

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

Related topics

2 functions implement hook_views_form_substitutions()

Note: the procedural functions in this list are found by pattern matching, so the list may include some functions that are not actually implementations of this hook.

ViewsTestDataViewsExecutionHooks::viewsFormSubstitutions in core/modules/views/tests/modules/views_test_data/src/Hook/ViewsTestDataViewsExecutionHooks.php
Implements hook_views_form_substitutions().
ViewsViewsExecutionHooks::viewsFormSubstitutions in core/modules/views/src/Hook/ViewsViewsExecutionHooks.php
Implements hook_views_form_substitutions().
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 954

Code

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