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

indytechcook’s picture

Status: Active » Closed (works as designed)

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