Yep.

CommentFileSizeAuthor
#6 nodeapi_example.info134 byteswebchick
#5 nodeapi_example.patch4.01 KBwebchick

Comments

pwolanin’s picture

what about adding the "pants module" as an example?

http://drupal.org/node/86528

webchick’s picture

Updated 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

webchick’s picture

Pants module is cool, and gets across a lot of concepts, but imo isn't appropriate for API documentation.

webchick’s picture

and 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.

webchick’s picture

Status: Active » Needs work
StatusFileSize
new4.01 KB

Here'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.

webchick’s picture

StatusFileSize
new134 bytes

Here's the info file.

webchick’s picture

Whoops. Accidentally committed that while I was committing an info file for XMLRPC example. :(

gustav’s picture

I 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

brunodbo’s picture

Project: Documentation » Drupal core
Version: » 7.x-dev
Component: Documentation in CVS » documentation
brunodbo’s picture

Changed the component to reflect the new component categorization. See http://drupal.org/node/301443.

dale42’s picture

Status: Needs work » Fixed

Advised 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.