XMLRPC plugin hooks

Each plugin could register methods which would be served by xmlrpc plugin :

$PLUGIN_HOOKS['xmlrpc']['foo'] = 'plugin_foo_registerMethods';

The registerMethods hook allow the plugin to register his methods

For example :

function plugin_xmlrpc_registerMethods() {
    global $XMLRPC_METHOD;

    $XMLRPC_METHOD['foo.bar']='plugin_foo_method_bar';
}

Each method should accept 2 parameters,

/**
 * Plugin Foo - method Bar
 *
 * @param $entities array of allowed entities
 * @param $params array of option
 * 
 * @return an response ready to be encode
 */
function plugin_foo_method_bar($entities, $params) {
    return array(...);
}