submitted by Tim 51 weeks 6 days ago
(from lullabot.com)
You can create custom CCK fields, widgets, and formatters for any situation, but it can be hard to see how to do it. Here is an 'Example' module that creates a simple field, formatter, and widget, with lots of embedded documentation about what belongs where. You need to create three files, an .info file, an .install file, and the module itself. The code below creates a very simple textfield, but it can be used as a starting point for any custom module. A .zip file with the contents of this custom module also attached.
ingridients (modules): cck
Comments
Post new comment