Advertisement
Guest User

fields_hierarchy

a guest
Dec 31st, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. --values
  2. ---card_exp_date_month
  3. -----und
  4. -------4
  5.  
  6. That exists in form_state.
  7. Unfortunately that hierarchy is followed by the form array too:
  8. --(Some fieldsets)
  9. ----card_exp_date_month
  10. ------und
  11. --------#default_value
  12. ---------4
  13.  
  14. The right hierarchy i think must be something like that:
  15. --values
  16. ---field_name
  17. ----und
  18. -------0
  19. --------value
  20. -------------4
  21.  
  22. and in form:
  23. --field_name
  24. ----und
  25. ------0
  26. --------value
  27. ---------#default_value
  28. ------------------------4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement