<div dir="ltr">it should be api not version
<a href="http://api.drupal.org/api/views/views.api.php/function/hook_views_api/7">http://api.drupal.org/api/views/views.api.php/function/hook_views_api/7</a> <br><br><div class="gmail_quote">On Wed, Jul 25, 2012 at 6:25 PM, Ms. Nancy Wichmann <span dir="ltr"><<a href="mailto:nan_wich@bellsouth.net" target="_blank">nan_wich@bellsouth.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><div><span>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?</span></div>
<div><span><br>/**<br> * Implements hook_views_api().<br> */<br>function nancy_reporting_views_api() {<br> drupal_set_message('nancy_reporting_views_api');<br> return array(<br> 'version' => '3.0',<br>
'path' => drupal_get_path('module', 'nancy_reporting'),<br> );<br>}</span></div><div><br><span></span></div><div><span>Yes, the module is named
"nancy_reporting."<br></span></div><div> </div><div><font face="bookman old style, new york, times, serif" size="4" color="#ff007f"><font style size="2"><span style="font-family:arial,helvetica,sans-serif"></span></font></font><font face="bookman old style, new york, times, serif" size="4" color="#ff007f"><i><b>Nancy</b></i></font> <br>
</div><div><font face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</font></div></div></div><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<br>Jibran Ijaz</div><br>
</div>