Drupal.org

Documentation incorrect regarding #empty_value ('anything except NULL' is incorrect)

Project:Documentation
Component:API documentation files
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:FAPI reference

Issue Summary

API page: http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7

The 'values' section for #empty_value states "Values: Defaults to empty string. Can be anything except NULL." -- this is incorrect, if it is set to the value TRUE then the empty option will overwrite $options[1] preventing the original value in $options[1] from being selected.

Comments

#1

Project:Drupal core» Documentation
Version:7.x-dev» <none>
Component:documentation» API documentation files

The Form API reference is in the Documentation project Git repository, so moving to that project.

nobody click here