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.
Issue #747074: Allow other modules to unset/remove default codecs implements a hook to unset/remove and an UI for it is left for another issue (never created, until now).
This issue is to request a UI for enable/disable a codec.
Comment | File | Size | Author |
---|---|---|---|
#5 | video_filter-n2071113-5.patch | 5.18 KB | DamienMcKenna |
Comments
Comment #1
moskito CreditAttribution: moskito commentedI create a filter settings that list all available codecs (default codecs are set as enable by default) and a hook 'video_filter_get_codec_enabled($filter)' to list all enabled codecs for a filter.
Comment #2
Chris Burge CreditAttribution: Chris Burge commentedThis patch tests successfully for me.
It would be useful if the instructions provided by the WYSIWYG plugin were modified to reflect enabled codecs. Instructions for all codecs are still presented to end users regardless of which ones are enabled.
Comment #3
moskito CreditAttribution: moskito commentedIn this new patch instructions provided by the WYSIWYG plugin are modified to reflect enabled codecs. As codecs are enabled per text format basis, but WYSIWYG plugin don't have text format context, the instruction shows all codecs available to the user (may not available in current text format, but for sure in one that he can use).
Comment #4
Chris Burge CreditAttribution: Chris Burge commentedPatch #3 works as described. Thanks for circling back around on this issue. It's too bad that WYSIWYG plugins aren't aware of the active text format. The functionality provided by #3 will probably meet the majority of use cases.
Comment #5
DamienMcKennaA minor update that slightly improves the "not all codecs available" disclaimer in the popup, and tightens up the code a little.
Comment #6
DamienMcKennaI was going to set this as RTBC, but then I tweaked the patch. This is good to go, adding it to the proposed issues list for 3.2.
Comment #8
DamienMcKennaCommitted. Thanks moskito.
Comment #10
DamienMcKennaFYI I did a follow-up commit to replace the hardcoded list with _video_filter_map_codecs_name(video_filter_get_codec_info()), which is what _video_filter_settings() uses.
Comment #11
minnur CreditAttribution: minnur at Chapter Three commentedMoving this up in the queue. From my experience this was confusing. Please make sure you configure your Text filters and enable video filter providers that you need.
When you create new provider you will also need to enable in on the configuration page.
Comment #12
minnur CreditAttribution: minnur at Chapter Three commented