You are here

function template_preprocess_eva_display_entity_view in EVA: Entity Views Attachment 7

Same name and namespace in other branches
  1. 8.2 eva.module \template_preprocess_eva_display_entity_view()
  2. 8 eva.module \template_preprocess_eva_display_entity_view()

@file Preprocess handlers for theme functions

File

./eva.theme.inc, line 8
Preprocess handlers for theme functions

Code

function template_preprocess_eva_display_entity_view(&$vars) {
  template_preprocess_views_view($vars);
  $view = $vars['view'];
  $display = $view->display_handler;
  $vars['title'] = $display
    ->get_option('show_title') ? filter_xss_admin($view
    ->get_title()) : '';
  if ($display
    ->get_option('show_on') == 'form') {
    $vars['exposed'] = NULL;
  }
  $vars['exposed_form_as_field'] = $display
    ->get_option('exposed_form_as_field');
}