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

function foo_views_api() {
  return array(
    'api' => 3.5, 
    'path' => drupal_get_path('module', 'foo'),

.. and a file with the following code:

function foo_views_query_alter(&$view, &$query) {

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)


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.