Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
At the present there's no way to hook into the form created by media_file_page_edit_multiple(). I need this to add some form elements that apply to all files being edited.
Comment | File | Size | Author |
---|---|---|---|
#3 | multiform-1889652.patch | 793 bytes | ericduran |
Comments
Comment #1
czigor CreditAttribution: czigor commentedI think this is a Multiple forms issue instead.
Comment #2
firfin CreditAttribution: firfin commented@czigor did you find a way to do this yet?
Anybody have any hints?
Comment #3
ericduran CreditAttribution: ericduran commentedThis actually adds a hook in the multiform_get_form right before the redirect.
There is literally no way of altering anything in that form. The params can probably be changed a bit we can probably also move it to above the form_set_cache but I didn't really need that for my purposes.
Comment #4
Elijah LynnComment #5
Elijah LynnThis would be useful, my memory is faint but I think we ended up submitting a patch to media to alter the multiform in Media.
https://drupal.org/node/2067091
Comment #6
kalman.hosszu CreditAttribution: kalman.hosszu commentedComment #7
mglamanThis allows us to finally alter the redirect of a multiform. Due to the lack of form_state it's getting a cached form state which prevents any form_alters from working (and I wasn't able to find a way to attach custom submit handler to multiform.)
Comment #8
Proteo CreditAttribution: Proteo as a volunteer commentedPatch from #3 worked for me. Media Bulk Upload need this to allow bulk field editing:
Bulk field editing after bulk uploading
Any chance to get it commited?
Comment #9
byronveale CreditAttribution: byronveale as a volunteer commentedI can also confirm this is working, presently with media-7.x-2.0-beta5 with patch, multiform-7.x-1.1, and plupload-7.x-1.7.
Comment #10
byronveale CreditAttribution: byronveale as a volunteer commentedLooking for maintainer input: the Media patch mentioned in my last comment has been committed (to 7.x-2.x-dev), but it depends on the patch in comment #3, which, wow, is from two and a half years ago; is there any intent, one way or the other, to get this committed?
Comment #11
joseph.olstadThis looks like a project that needs a maintainer. I'll make a new issue offering to maintain. Feel free to join me.
#2826351: Offer to maintain the 'multiform' project 7.x branch
Comment #12
joseph.olstad@byronveale has been following up with this issue.
RTBC++ still waiting for maintainer access.
Comment #14
joseph.olstadthis is in release 7.x-1.2