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

1 function implements 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.inc
Implements hook_views_form_substitutions().
1 invocation of hook_views_form_substitutions()
theme_views_form_views_form in drupal/core/modules/views/theme/theme.inc
Theme function for a View with form elements: replace the placeholders.

File

drupal/core/modules/views/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',
  );
}