This patch was created for a site where we want to keep the UI as simple as possible, so we are looking to stamp out as much UI/config as possible. To this end, we wanted to remove machine names from the UI and let the code handle them, as setting a custom machine name or editing one was deemed unnecessary for our users.
Obviously the usefulness of this patch is subjective but I believe Drupal moved closer to this line of thinking with the introduction of the machine_name type field in D7.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | values_machine_names-1350868-1.patch | 4.5 KB | evanbarter |
Comments
Comment #1
evanbarter commentedAttaching patch.
Comment #2
drclaw commentedCommitted!
Comment #3
roball commentedWill this still allow the admin to change the display value of an option, while keeping its internal key, so it does not break all existing submitted forms?
For example, if the original value pairs for a selection field was
and later we recognize and correct the typo so we update the value pairs to
?
Comment #4
drclaw commentedHi @roball
This patch actually only removes the visible machine name from the name of the entire value set. The values themselves still have visible keys.
Thanks!
drclaw
Comment #5
roball commentedAh, sounds good. Didn't try it yet, just wanted to ensure that a good feature wasn't removed.
So, it is still possible to add a value within two existing ones? For example, if I have
can I expand it later to
without breaking the existing submissions? Thanks for clarification.
Comment #6
drclaw commentedYep, all the handling of values is the same.