Problem/Motivation
Currently, when https://oembed.com/providers.json is fetched to generate a list of available oEmbed providers, there is no opportunity to alter the list of providers.
This would be useful in scenarios such as 1) Peer Tube and 2) oEmbed providers that may be organization-specific. Peer Tube is a decentralized video platform. The user can search videos across multiple instance of PeerTube with different domain names. Re custom oEmbed providers, the University of Nebraska-Lincoln hosts its own video service, which will soon support oEmbed. This functionality is needed by this organization.
(Originally reported as a core feature request: #3008119: Provide hook_oembed_providers_alter())
Proposed resolution
Provide hook_oembed_providers_alter().
Remaining tasks
Submit patch- Review
User interface changes
None.
API changes
Adding hook_oembed_providers_alter().
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | oembed_providers-add_hook_oembed_providers_alter-3177117-4.patch | 11.1 KB | chris burge |
Comments
Comment #2
chris burge commentedPatch attached.
Comment #4
chris burge commentedUpdated patch attached. Original patch was missing code.
Comment #5
chris burge commentedComment #7
chris burge commentedThis hook will be included in release 1.1.0. Thanks to everyone who helped out over at #3008119: Provide hook_oembed_providers_alter().