function 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

2 functions implement hook_views_form_substitutions()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

action_views_form_substitutions in drupal/core/modules/action/action.views_execution.inc
Implements hook_views_form_substitutions().
views_test_data_views_form_substitutions in drupal/core/modules/views/tests/views_test_data/views_test_data.views_execution.inc
Implements hook_views_form_substitutions().
1 invocation of hook_views_form_substitutions()
theme_views_form_views_form in drupal/core/modules/views/views.theme.inc
Theme function for a View with form elements: replace the placeholders.

File

drupal/core/modules/views/views.api.php, line 333
Describes hooks and plugins provided by the Views module.

Code

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