Ok, I don't think you can do this but I wanted to ask since I couldn't find out for sure...
My issue is pretty odd, and there is probably another way around it but I can't find it. I'm writing a modules for Postnuke (just as a FYI). I need to name a function in the code based on the directory name of where it's installed.
So if the module is in "modules/audio" my function name needs to be:
function audio_admin_main(){}
But if it's installed at "modules/jinzora" my function name needs to be:
function jinzora_admin_main(){}
So my question is is there anyway to dynamically name a function in code? I tried the simple:
$function_name = "audio_admin_main";
function $function_name(){}
Which obviously didn't work...
Thoughts?
Ross
http://jinzora.jasbone.com