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

Issue fork insert-3381683

Command icon 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

    tonyhrx created an issue. See original summary.

    tolstoydotcom’s picture

    This 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".

    snater’s picture

    Status: Active » Needs review
    StatusFileSize
    new878 bytes

    Thanks for filing the issue. I've attached a patch altering the hook name as mentioned, hopefully fixing the issue.

    tevans’s picture

    I 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.

    promes’s picture

    Patch #4 works for me. Please create a dev verion.

    • Snater committed dd959b35 on 3.x
      Issue #3381683 by Snater: Duplicate function error insert media module
      
    snater’s picture

    Status: Needs review » Fixed

    Released 3.0.0-beta2.

    Status: Fixed » Closed (fixed)

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