I'm using drupal 7.29 . I'm trying to write the preprocess function for a specific view named front-page. I have written the following functions in my template.php file:
function bartik_sub_preprocess_views_view__front_page(&$variables) {
kpr($variables);
}
The function for preprocessing view works normally (without the __front_page at the end), but the above function isn't being called. I did create the corresponding .tpl.php (views-view--front-page.tpl.php) file which is used but the function still isn't being called. I watched a couple of tutorials where the preprocessing function for a specific view was written like this and it worked, any ideas why this isn't working?