Skip to content
Snippets Groups Projects
  • Jared Hancock's avatar
    forms: Standardize saving of choice field values · 4a49ddd1
    Jared Hancock authored
    Always save a key/value hash of the selected value(s). However, if the field
    does not have the multivalue configuration setting, then retrieve just the
    key with the to_php() function. to_database(), however, will always return a
    JSON string with the value(s) formatted as a hash array.
    4a49ddd1