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.

Comments

Chris Burge created an issue. See original summary.

chris burge’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new4.32 KB

Patch attached.

Status: Needs review » Needs work
chris burge’s picture

Status: Needs work » Needs review
StatusFileSize
new11.1 KB

Updated patch attached. Original patch was missing code.

chris burge’s picture

Version: 1.0.x-dev » 1.1.x-dev

  • Chris Burge committed b174ad1 on 1.1.x
    Issue #3177117 by Chris Burge, phjou, phenaproxima, seanB, zipymonkey,...
chris burge’s picture

Status: Needs review » Fixed

This hook will be included in release 1.1.0. Thanks to everyone who helped out over at #3008119: Provide hook_oembed_providers_alter().

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.