Add hook_oembedprovider_node_result_alter()

Created on 5 September 2012, over 12 years ago
Updated 26 November 2024, 4 months ago

I wanted a way to alter the array returned by _oembedprovider_node_provider() so that I could add a thumbnail_url parameter for the media module's browser. Perhaps there is a way to change the the rendering pipeline so a module other than _oembedprovider_node_provider() is used to output the code for nodes, but I could not figure it out.

The attached module creates a new hook so you can alter the $return array. It might have been better to create a more generic hook in _oembedprovider_result(), but I needed the $node object to get passed for my purposes. Here's an example implementation:

function mymodule_oembedprovider_node_result_alter(&$data, $node) {
}
✨ Feature request
Status

Closed: outdated

Version

0.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jlyon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024