Download & Extend

When hooks are executed?

Project:Views
Version:7.x-3.5
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

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..

#2

Status:fixed» closed (fixed)

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

nobody click here