How to see the results of my first module I created a module to alter the query executed by a view, but i cannot figure it out how to test it ...  I mean where should i see the results ?
I've created the following files:

my_module.info
my_module.module
my_module.views.inc


in the second file i have:

function my_module_views_api() {
  return array(
    'api' =&gt; 3, 
    'path' =&gt; drupal_get_path('module', 'my_module'), 
    'template path' =&gt; drupal_get_path('module', 'my_module'),
  );
}


and in the third one:

function my_module_hook_views_query_alter(&amp;$view, &amp;$query)  {
  var_dump($view);
}


Where should i be able to see the result of var_dump ?
hook_views_query_alter() is supposed to alter the query passed as second parameter, or the view object passed as first argument, not to output anything. If you want to debug the hook, you should use code similar to the following one.

watchdog('my_module', 'View: @view', array('@view' =&gt; print_r($view, TRUE)), WATCHDOG_DEBUG);


The name you gave to your hook is wrong: You just need to replace hook with the short name of your module. For a hook like hook_views_query_alter(), the function name is not my_module_hook_views_query_alter(), but my_module_views_query_alter().