function defined in module not global?
I usually define my modules functions in a separate .inc file, and when i need them somewhere (usually sub-modules) i first include them with module_load_include( file-extension, module-name, file-path)

You can add the module_load_include() call at top of your snippet, or, if you need those function in many other places in your module hook_init() and make it avaible to every page.