6.x and lower: http://cvs.drupal.org/viewvc.py/drupal/contributions/docs/developer/hooks/?pathrev=DRUPAL-6--1
Thanks Neil,
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.
ctags -R -o drupal6.tags --langmap=php:.module *
then load it in vim
:set tags=drupal6.tags
and you have code complete for every function in core.
However, this unfortunately doesn't get code complete on hooks, as they aren't actually named in core, but constructed from modulename_function().
So, I guess my next question is where are the hook function definitions from api.drupal.org generated?
Thanks in advance.
-S
Neil Drumm wrote:
http://api.drupal.org/api/function_dump/6 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.
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.
-Neil
On Fri, Jul 31, 2009 at 12:26 PM, Sam Tresler <sam@treslerdesigns.com <mailto:sam@treslerdesigns.com>> wrote:I believe that api.drupal.org <http://api.drupal.org> scrapes this
I am working on a drupalcomplete.vim file and would like to generate
an list of all of Drupal 6 (and eventually 5,7, etc) functions,
objects, and anything else that might warrant code completion.
automatically from core. I can manipulate the data to match the
format I need no problem, but I thought I would ask here before I
went about finding my own way to scrape the data from a cvs checkout.
This was broached before here
http://lists.drupal.org/pipermail/development/2009-February/032090.html
but appears stalled.
yes, I have too much time on my hands currently.
Cheers. -Sam
--
Neil Drumm
http://delocalizedham.com