Problem/Motivation
Fatal error: Cannot redeclare insert_field_widget_single_element_form_alter() line 196 insert_media module
Steps to reproduce
Install insert media module
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | insert-3381683-insert_media_field_widget_single_element_form_alter.patch | 741 bytes | tevans |
| #3 | insert-3381683-insert_media_field_widget_single_element_form_alter.patch | 878 bytes | snater |
Issue fork insert-3381683
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
tolstoydotcomThis seems to be a moving target so skip the issue fork I created.
Instead, open insert_media.module and change "insert_field_widget_single_element_form_alter" to "insert_media_field_widget_single_element_form_alter".
Comment #3
snater commentedThanks for filing the issue. I've attached a patch altering the hook name as mentioned, hopefully fixing the issue.
Comment #4
tevans commentedI ran into errors getting composer to apply #3, so I rolled my own patch and uploaded it here for anyone else running into similar issues.
Comment #5
promesPatch #4 works for me. Please create a dev verion.
Comment #7
snater commentedReleased 3.0.0-beta2.