Drupal 7
Views
Bootstrap theme sub theme in use

I have a views-view-table.tpl.php file in my sub theme and I am trying to preprocess some of the variables sent to this tpl. I created a function bootstrap_preprocess_views_view(&$vars) in my template.php and it is not getting called when I visit one of my views pages. Why would this be? Other preprocess functions are getting called from the same template file. I have tried flushing the cache.

<?php
function bootstrap_preprocess_views_view(&$vars) {
  dsm($vars);
  dsm("aaaa");
  die;
}
?>

Comments

nevets’s picture

bootstrap should be the name of your subtheme

agerson’s picture

Bootstrap is the name of the parent theme. It would not make sense to name my subtheme bootstrap. I have tried placing the and naming the function in both the parent and child theme. No effect.

nevets’s picture

Did you clear cache? (When in your theme functions in template.php should start with you theme name)