引用地址:http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7
Form Controls
Legend:
X = attribute can be used with this type
- = attribute is not applicable to this type
Special Elements
#type | actions | button | container | image_button | submit | form | hidden | token | markup | item | value |
---|---|---|---|---|---|---|---|---|---|---|---|
#access | X | X | X | X | X | X | X | X | X | X | - |
#action | - | - | - | - | - | X | - | - | - | - | - |
#after_build | X | X | X | X | X | X | X | X | X | X | - |
#ajax | - | X | - | X | X | - | - | - | - | - | - |
#attributes | X | X | X | X | X | X | - | - | - | - | - |
#button_type | - | X | - | X | X | - | - | - | - | - | - |
#default_value | - | - | - | - | - | - | X | X | - | - | - |
#description | - | - | - | - | - | - | - | - | - | X | - |
#disabled | - | X | - | X | X | - | - | - | - | - | - |
#element_validate | - | X | - | X | X | - | X | X | X | X | - |
#executes_submit_callback | - | X | - | X | X | - | - | - | - | - | - |
#limit_validation_errors | - | X | - | X | X | - | - | - | - | - | - |
#markup | - | - | - | - | - | - | - | - | X | X | - |
#method | - | - | - | - | - | X | - | - | - | - | - |
#name | - | X | - | - | X | - | - | - | - | - | - |
#parents | X | X | X | X | X | - | X | X | X | X | - |
#post_render | X | X | X | X | X | X | X | X | X | X | - |
#prefix | X | X | X | X | X | X | X | X | X | X | - |
#pre_render | X | X | X | X | X | X | X | X | X | X | - |
#process | X | X | X | X | X | X | X | X | X | X | - |
#return_value | - | - | - | X | - | - | - | - | - | - | - |
#src | - | - | - | X | - | - | - | - | - | - | - |
#submit | - | X | - | X | X | X | - | - | - | - | - |
#suffix | X | X | X | X | X | X | X | X | X | X | - |
#theme | X | X | X | X | X | X | X | X | X | X | - |
#theme_wrappers | X | X | X | X | X | X | X | X | X | X | - |
#title | - | - | - | - | - | - | - | - | - | X | - |
#title_display | - | - | - | - | - | - | - | - | - | X | - |
#tree | X | X | X | X | X | X | X | X | X | X | - |
#validate | - | X | - | X | X | X | - | - | - | - | - |
#value | - | X | - | X | X | - | X | X | - | - | X |
#weight | X | X | X | X | X | - | X | X | X | X | - |
#type | actions | button | container | image_button | submit | form | hidden | token | markup | item | value |