You are here

function vefl_theme_registry_alter in Views exposed form layout 8

Same name and namespace in other branches
  1. 8.3 vefl.module \vefl_theme_registry_alter()
  2. 8.2 vefl.module \vefl_theme_registry_alter()
  3. 7 vefl.module \vefl_theme_registry_alter()

Implements hook_theme_registry_alter().

File

./vefl.module, line 25
Module file for vefl.

Code

function vefl_theme_registry_alter(&$theme_registry) {

  // Inserts default views preprocess function before vefl preprocess function.
  $before = array_search('template_preprocess_vefl_views_exposed_form', $theme_registry['vefl_views_exposed_form']['preprocess functions']);
  array_splice($theme_registry['vefl_views_exposed_form']['preprocess functions'], $before, 0, [
    'template_preprocess_views_exposed_form',
  ]);
}