- Code: Select all
function myplugin_name(){
// return name...
}
function myplugin_dependencies(){
return array(
// ...
);
}
The order the plugins will be loaded could be figured out by the pluginloader. It would first gather all the information given by the functions/classes, so all dependencies, versions, name etc. and then figure out the best and efficient order of loading the plugins. So an additional file for the information would be the best way.
Concerning the discussion for PHP 4/5 I would clearly say PHP 5 but I think that is another point not discussed here... To be honest my current development already depends on classes, and main information of the plugins are available through static functions or constants.

