I have a weird issue. The soembed filter was not working. After some debugging I found that $providers was not being passed from the include file to soembed_filter_embed().

It seems like a good idea to wrap a function around the $providers array. This will prevent any scoping issues caused while including files. Maybe it's even better to add the function to the .module file, but this is a start.

Comments

seanB created an issue. See original summary.

seanb’s picture

Status: Active » Needs review
StatusFileSize
new5.56 KB

Patch is attached. Please review!

seanb’s picture

Sorry, here is a patch not changing filemodes...

cleverhoods’s picture

StatusFileSize
new6.5 KB

Updated patch

ki’s picture

Status: Needs review » Fixed

It was addressed by using `require_once` instead of `module_load_include()`. Since it is called in the function, `soembed_filter_embed()`, there should not a scoping issue.

ki’s picture

Status: Fixed » Closed (fixed)