Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Following the scarce documentation(click), I created a module foo.module containing the following code:
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:
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
Comment #1
hhschoone CreditAttribution: hhschoone commentedAllright. I have cleared the cache multiple times through the Drush commandline - as stated, without effect. However, clearing it via the site itself fixed it..