Closed (works as designed)
Project:
Taxonomy Menu
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2009 at 11:02 UTC
Updated:
29 Oct 2009 at 12:40 UTC
Is this Form API or custom module module stuff? Normally 'default' => '', need to have a sharp in front if used within Form API e.g. '#default_value' => '',. It may be better to prefix custom module form API hacks with the module name like '#taxonomy_menu_default_value' => '', to prevent name space collisions.
Comments
Comment #1
indytechcook commentedCustom module stuff. The 'default' is used as the default value for the variables. Since the get for the variables is called when the form is loaded (see _taxonomy_menu_create_options) I needed a value and didn't want to interfere with the default Form API. I guess i could have used '#default_value' just the same. At this point, I don't want to make any API changes to version 2. Version 3 is in full swing and I expect to have a release (very unstable) soon and will make this change there.