Can we add a hook_media_browser_fake_buttons_alter()?
I have an issue getting my Sticky Edit Actions module to work correctly since Media plugins currently don't use real forms in the media browser. Attached is a patch to add an alter that allows me to add a class to the buttons to get things working correctly.
There is an open issue to use real forms for plugins at #1558042: Refactor Views plugin code as a form rather than raw html and would make this issue moot as things would 'just work' then.
Comment | File | Size | Author |
---|---|---|---|
#3 | media-fake-button-alter-1558042-03.patch | 1.26 KB | Elijah Lynn |
#1 | media-fake-button-alter-1558042-01.patch | 486 bytes | Elijah Lynn |
Comments
Comment #1
Elijah LynnAdding patch.
Comment #2
deviantintegral CreditAttribution: deviantintegral commentedPatch is good, but we're missing docs in media.api.php.
Comment #3
Elijah LynnThanks Andrew!
Here is some docs ripped from the related Sticky Edit Actions patch.
Comment #4
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 5 year old patch in #3 to media.api.php does not apply to the latest media 7.x-2.x-dev and if still relevant needs to be rerolled.
Comment #5
joseph.olstadfeel free to submit a rerolled patch and I will consider re-openning if you need this and want it reviewed