Community Documentation

ARCHIVE: Example: node_example.module

Last updated March 26, 2011. Created by rorysolomon on November 24, 2006.
Edited by linclark, merlinofchaos. Log in to edit this page.

The following entry in the API provides code for this example. Comments sprinkled throughout should provide guidance in understanding what is going on here, and in the steps you should take if you are trying to implement something similar.

node_example.module | Drupal API

Note: the "source" link on that page is broken, so after reading the module description, go here for the actual code:

(click "view" or "download" from those links for the actual source code.)

Comments

Example for Views 1 API?

I expected to have some working Views 1 API code examples based on previous sections in this node_example module, but all it has is about
1. creating a custome node
2. creating forms
3. creating a databse table and storing/viewing the newly created nodes.

Am I missing something?

Link broken

Not only the 'source' link, the links for 'node_example.module', 'node_example.info', and 'node_example.install' are all broken.

About this page

Drupal version
Drupal 5.x

Archive

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here