6.x and lower: <a href="http://cvs.drupal.org/viewvc.py/drupal/contributions/docs/developer/hooks/?pathrev=DRUPAL-6--1">http://cvs.drupal.org/viewvc.py/drupal/contributions/docs/developer/hooks/?pathrev=DRUPAL-6--1</a><div>
7.x: *.api.php in module directories.</div><div><br></div><div>-Neil<br><br><div class="gmail_quote">On Fri, Jul 31, 2009 at 2:03 PM, Sam Tresler <span dir="ltr"><<a href="mailto:sam@treslerdesigns.com">sam@treslerdesigns.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks Neil,<br>
Some further digging and I found out that php code completion in vim can map to a ctags output file, which is pretty easy to generate.<br>
<br>
ctags -R -o drupal6.tags --langmap=php:.module *<br>
<br>
then load it in vim<br>
<br>
:set tags=drupal6.tags<br>
<br>
and you have code complete for every function in core.<br>
<br>
However, this unfortunately doesn't get code complete on hooks, as they aren't actually named in core, but constructed from modulename_function().<br>
<br>
So, I guess my next question is where are the hook function definitions from <a href="http://api.drupal.org" target="_blank">api.drupal.org</a> generated?<br>
<br>
Thanks in advance.<br>
<br>
-S<br>
<br>
<br>
<br>
<br>
Neil Drumm wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<a href="http://api.drupal.org/api/function_dump/6" target="_blank">http://api.drupal.org/api/function_dump/6</a> might have worked at some point. I honestly haven't paid any attention to that page, which might integrate with IDEs; apparently no one else has either.<br>
<br>
This list is already available in JSON format in the development version of API module. That or another format should be present in the future for an api_filter module to provide an input format filter without running the api module.<br>
<br>
-Neil<br>
<br></div><div class="im">
On Fri, Jul 31, 2009 at 12:26 PM, Sam Tresler <<a href="mailto:sam@treslerdesigns.com" target="_blank">sam@treslerdesigns.com</a> <mailto:<a href="mailto:sam@treslerdesigns.com" target="_blank">sam@treslerdesigns.com</a>>> wrote:<br>
<br>
I am working on a drupalcomplete.vim file and would like to generate<br>
an list of all of Drupal 6 (and eventually 5,7, etc) functions,<br>
objects, and anything else that might warrant code completion.<br>
<br></div>
I believe that <a href="http://api.drupal.org" target="_blank">api.drupal.org</a> <<a href="http://api.drupal.org" target="_blank">http://api.drupal.org</a>> scrapes this<div class="im"><br>
automatically from core. I can manipulate the data to match the<br>
format I need no problem, but I thought I would ask here before I<br>
went about finding my own way to scrape the data from a cvs checkout.<br>
<br>
This was broached before here<br>
<a href="http://lists.drupal.org/pipermail/development/2009-February/032090.html" target="_blank">http://lists.drupal.org/pipermail/development/2009-February/032090.html</a><br>
but appears stalled.<br>
<br>
yes, I have too much time on my hands currently.<br>
<br>
Cheers. -Sam<br>
<br>
<br>
<br>
<br>
-- <br>
Neil Drumm<br>
<a href="http://delocalizedham.com" target="_blank">http://delocalizedham.com</a><br>
</div></blockquote>
</blockquote></div><br><br clear="all"><br>-- <br>Neil Drumm<br><a href="http://delocalizedham.com">http://delocalizedham.com</a><br>
</div>