Before I pull any more hair out, maybe someone has an idea. I have a module that I am adding a hook_views_api() to. It is not firing - I put a dsm() in to find out. I also tried using a module_implements() and the module is not in the list. The module is definitely enabled because other functions run fine. This is about as simple a hook as there is, so how have I messed it up? /** * Implements hook_views_api(). */ function nancy_reporting_views_api() { drupal_set_message('nancy_reporting_views_api'); return array( 'version' => '3.0', 'path' => drupal_get_path('module', 'nancy_reporting'), ); } Yes, the module is named "nancy_reporting." Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
You have tried the "clear the cache" bit, right? If so then go to the modules page and click the save button. I often run into this during development. Earnie On Wed, Jul 25, 2012 at 9:25 AM, Ms. Nancy Wichmann <nan_wich@bellsouth.net> wrote:
Before I pull any more hair out, maybe someone has an idea. I have a module that I am adding a hook_views_api() to. It is not firing - I put a dsm() in to find out. I also tried using a module_implements() and the module is not in the list. The module is definitely enabled because other functions run fine. This is about as simple a hook as there is, so how have I messed it up?
/** * Implements hook_views_api(). */ function nancy_reporting_views_api() { drupal_set_message('nancy_reporting_views_api'); return array( 'version' => '3.0', 'path' => drupal_get_path('module', 'nancy_reporting'), ); }
Yes, the module is named "nancy_reporting."
Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Earnie -- https://sites.google.com/site/earnieboyd
I cleared the cache several times, but hadn't tried the modules page. That did it. Thanks, Earnie. Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
________________________________ From: Earnie Boyd
You have tried the "clear the cache" bit, right? If so then go to the
modules page and click the save button. I often run into this during development.
it should be api not version http://api.drupal.org/api/views/views.api.php/function/hook_views_api/7 On Wed, Jul 25, 2012 at 6:25 PM, Ms. Nancy Wichmann <nan_wich@bellsouth.net>wrote:
Before I pull any more hair out, maybe someone has an idea. I have a module that I am adding a hook_views_api() to. It is not firing - I put a dsm() in to find out. I also tried using a module_implements() and the module is not in the list. The module is definitely enabled because other functions run fine. This is about as simple a hook as there is, so how have I messed it up?
/** * Implements hook_views_api(). */ function nancy_reporting_views_api() { drupal_set_message('nancy_reporting_views_api'); return array( 'version' => '3.0', 'path' => drupal_get_path('module', 'nancy_reporting'), ); }
Yes, the module is named "nancy_reporting."
*Nancy* Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Regards, Jibran Ijaz
participants (3)
-
Earnie Boyd -
Jibran Ijaz -
Ms. Nancy Wichmann