Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2006 at 20:33 UTC
Updated:
20 Aug 2009 at 23:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
pwolanin commentedwhat about adding the "pants module" as an example?
http://drupal.org/node/86528
Comment #2
webchickUpdated block_example and page_example modules.
Still to go:
- fileupload.module
- filter_example.module
- multipage_form_example.module
- node_example.module
- nodeapi_example.module
- xmlrpc_example.module
Comment #3
webchickPants module is cool, and gets across a lot of concepts, but imo isn't appropriate for API documentation.
Comment #4
webchickand before I get flamed for that, I don't mean inappropriate as "OMG PANTS?!?! Won't someone think of the children!!!" I mean it as in each example module in the API docs communicates one specific concept, and is only a few functions in length. Pants module covers everything from hook_user to XML-RPC. It's more of a tutorial than an example.
Comment #5
webchickHere's a start on nodeapi_example.module. It should be working, except it isn't. :P For some reason, every time I save the node settings options, it saves it as nodeapi_example_blog_blog which of course doesn't work. But even correcting manually doesn't seem to be working either.
Comment #6
webchickHere's the info file.
Comment #7
webchickWhoops. Accidentally committed that while I was committing an info file for XMLRPC example. :(
Comment #8
gustav commentedI think the implementation of hook_menu in page_example.module is out of date. At least it does not agree with the documentation at http://localhost/disxover/api/function/hook_menu/Drupal5
Comment #9
brunodboComment #10
brunodboChanged the component to reflect the new component categorization. See http://drupal.org/node/301443.
Comment #11
dale42Advised in IRC by add1sun that this item was completed for both Drupal 5 and 6.
Any Drupal 7 examples requiring updating should have issues created for them.