backdrop-contrib / tinymce

Integration for the TinyMCE editor in Backdrop CMS
https://backdropcms.org/project/tinymce
GNU General Public License v2.0
2 stars 1 forks source link

Conflicting function name with profile module #44

Closed indigoxela closed 9 months ago

indigoxela commented 9 months ago

From our Zulip chat:

we've noticed that the function tinymce_profile_load($name) has a conflict with the module Profile, which has the hook_profile_load(). Any chance the function can be renamed?

https://github.com/backdrop-contrib/tinymce/blob/1.x-1.x/tinymce.module#L60

The easiest solution would be to strip the underscore...

%tinymceprofile would result in function tinymceprofile_load, which shouldn't conflict with anything else.

avpaderno commented 9 months ago

There is hook_load(), but that hook is invoked only for modules that implement a node content type. It would not be invoked for this module.