How to preprocess view accordion I'm using D7 and module Views Accordion (V 7.x-1.1) for my view. I've created my custom template (e.g views-view-accordion--[name of my view].tpl.php) for customize my view. However, when I want to add some variables in preprocess function, I created the function mytheme_preprocess_views_view__[name of my view](&amp;$vars), I cannot get into this function.

Am I doing something wrong? Thanks in advance.
You want to use template_preprocess_views_view (see views theme functions)

function MYTHEME_preprocess_views_view(&amp;$variables) {
  $view = $variables['view'];
  if ($view-&gt;name == 'my_view_name') {
    // add your variables here
    $variables['YOUR_VARIABLE'] = 'value';
  }
}


$YOUR_VARIABLE should be available in your template file.