You are here

eva.theme.inc in EVA: Entity Views Attachment 7

Preprocess handlers for theme functions

File

eva.theme.inc
View source
<?php

/**
 * @file
 * Preprocess handlers for theme functions
 */
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');
}
function template_process_eva_display_entity_view(&$vars) {
  template_process_views_view($vars);
}

Functions

Namesort descending Description
template_preprocess_eva_display_entity_view @file Preprocess handlers for theme functions
template_process_eva_display_entity_view