Add settings_alter to h5pDefaultFormatter

Created on 1 November 2018, almost 7 years ago
Updated 6 August 2025, 6 days ago

Hello Guys,

I Need to add Mathjax functionality to my h5p content and didin't want to load the Mathjax lib and settings on every page or by the preprocess. So I added the libs by using the h5p_scripts_alter() function. But for Mathjax I also need to add settings which i could not without altering the Settings on the rendered element. So i thought of adding an alter hook for this and want to contribute it back.

By the way i could not find the 8.x-1.x-dev in the Version selection.

πŸ“Œ Task
Status

Active

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany AndrewTur

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.

  • πŸ‡ΊπŸ‡ΈUnited States illeace

    This sounds like a useful feature. I haven't tested applying the patch, but glancing at it suggests it will need to be updated a bit to work with the latest 2.0.x-dev branch.

Production build 0.71.5 2024