Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAINTAIN-151] changed a default value of the frameborder attribute to 1 for video_embed_iframe element #8

Merged
merged 2 commits into from
Aug 3, 2021

Conversation

aleevas
Copy link
Contributor

@aleevas aleevas commented Aug 3, 2021

Original Issue, this PR is going to fix: MAINTAIN-151

Also this was discussed in this PR ymcatwincities/openy#2526

The fix should add the border to all embedded video entities
MAINTAIN-151BorderInEmbededVideo

Steps for review

  • log as admin

  • go to edit node (blog post foe example)

  • to add a new External video entity
    MAINTAIN-151AddEmbededVideo

  • save node and verify that iframe has border=1
    MAINTAIN-151BorderInEmbededVideo

  • verify that for all themes

*/
function openy_media_video_element_info_alter(&$info) {
if (isset($info['video_embed_iframe'])) {
$info['video_embed_iframe']['#pre_render'][] =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aleevas Let's add this function before default pre_render function

…ist for the prerenders functions for video_embed_iframe element
@podarok podarok merged commit 7b07a09 into open-y-subprojects:main Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants