Closed (fixed)
Project:
Documentation
Component:
Developer Guide
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
12 Dec 2005 at 23:10 UTC
Updated:
11 Aug 2006 at 20:15 UTC
Jump to comment: Most recent file
I've updated the example module to use the hook_form_alter() instead of hook_nodeapi().
Comments?
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | nodeapi_example.module_0.patch | 10.62 KB | drewish |
| #1 | nodeapi_example.module.patch | 9.92 KB | drewish |
| menu.module_create_on_reset_0.patch | 1.99 KB | drewish |
Comments
Comment #1
drewish commentedcrap, wrong patch. i'll try it again.
Comment #2
Bèr Kessels commentedAm I tired, or did you atatch the wrong patch?
Comment #3
Bèr Kessels commentedheh :) Iam tired and you commited the wrong patch :)
Comment #4
drewish commentedhehe, i was just about to write back "both" ;)
Comment #5
chx commentedtype is not set always in the form -- form_alter is called for all forms.
Comment #6
drewish commentedchx, i thought the comment made it clear that it was only set on forms that dealt with nodes... or are you saying that i'll throw warning/notices because that value isn't set?
Comment #7
chx commentedyes you will see core form_alters for more
Comment #8
drewish commentedchx, I'm sorry I don't understand what your saying. What exactly is the problem with the given code and what should be changed?
Comment #9
chx commentedopen menu.module and check menu_form_alter
Comment #10
drewish commentedi took chx's cryptic hint and added a test to see if $form['type'] is set. comments?
Comment #11
zach harkey commented+1?
See, I don't know if this works or not. Trying to learn, a task made far more difficult when official documentation that is presented as current is out-of-date.
Comment #12
zach harkey commentedSeems to work now.
Comment #13
drewish commentedah, yeah, i'd updated the docs but forgot to close the issue.
Comment #14
(not verified) commented