Following the scarce documentation(click), I created a module foo.module containing the following code:

<?php
function foo_views_api() {
 
watchdog('foo','bar',false,WATCHDOG_DEBUG);
  return array(
   
'api' => 3.5,
   
'path' => drupal_get_path('module', 'foo'),
  );
}
?>

.. and a foo_views.inc file with the following code:

<?php
function foo_views_query_alter(&$view, &$query) {
  
watchdog('foo_inc','bar_inc',false,WATCHDOG_DEBUG);
  
dpm($view);
}
?>

When I load a panel with a view embedded in it, it doesn't execute the function in the .inc file - in fact, none of the views-hooks are executed. What am I doing wrong? When are the hooks supposed to run?

(I use Views 3.5, and Devel enabled)

Comments

hhschoone’s picture

Status:Active» Fixed

Allright. I have cleared the cache multiple times through the Drush commandline - as stated, without effect. However, clearing it via the site itself fixed it..

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.