Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291123

Allow custom form state to be passed to entity_get_form()

$
0
0

Unlike drupal_get_form(), entity_get_form() does not pass along any other arguments given to it.
That has led to the Views UI attaching arbitrary data to the entity before passing it along, which is not ideal.
Contrib will very likely need to do this as well.

In order to implement this, I also had to clean up the arguments passed to entity_get_form() and entity_form_state_defaults(). entity_get_form() now mirrors entity_submit_form(), and entity_form_state_defaults() is less tailored to one use case.

AttachmentSizeStatusTest resultOperations
entity_get_form-args.patch14.48 KBIdlePASSED: [[SimpleTest]]: [MySQL] 49,698 pass(es).View details | Re-test

Viewing all articles
Browse latest Browse all 291123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>