Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2013 at 12:50 UTC
Updated:
24 Jan 2013 at 14:40 UTC
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 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..