summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoachim Noreiko2009-12-21 23:15:42 (GMT)
committer Joachim Noreiko2009-12-21 23:15:42 (GMT)
commit72fc594aad33acaced0b8cd94a868b803a0830f3 (patch)
tree24888dff008daa6921691ccb7005d79be971db06
parent011ae0c9b0b32aafd43859fbe1919a784bd293d4 (diff)
#417260 by joachim: Fixed views.get services parameters for services 6.x-2.x.6.x-1.2
-rw-r--r--modules/content_retriever/content_retriever.module20
1 files changed, 16 insertions, 4 deletions
diff --git a/modules/content_retriever/content_retriever.module b/modules/content_retriever/content_retriever.module
index bc38756..feff6b7 100644
--- a/modules/content_retriever/content_retriever.module
+++ b/modules/content_retriever/content_retriever.module
@@ -555,12 +555,24 @@ function content_retriever_xmlrpc($endpoint, $method, $api_key, $session_id = ''
case 'views.get':
//check for an API key - if not supplied, presume not required
if ($api_key == '') {
- //$param1 is view name, $param2 is array of view arguments
- //'default' is display_id parameter hardcoded to default.
- $result = xmlrpc($endpoint, $method, $session_id, (string) $param1, 'default', array(), (array) $param2, 0, 0);
+ $result = xmlrpc($endpoint, $method, $session_id,
+ (string) $param1, // $param1 is view name
+ 'default', // 'default' is display_id parameter hardcoded to default.
+ (array) $param2, // $param2 is array of view arguments
+ 0, // offset
+ 0 // limit
+ // format_output which we're not passing at all.
+ );
} else {
//var_dump($endpoint, $method, $hash, $domain, $timestamp, $nonce, $session_id, $param1, $param2);
- $result = xmlrpc($endpoint, $method, $hash, $domain, $timestamp, $nonce, $session_id, (string) $param1, 'default', array(), (array) $param2, 0, 0);
+ $result = xmlrpc($endpoint, $method, $hash, $domain, $timestamp, $nonce, $session_id,
+ (string) $param1, // $param1 is view name
+ 'default', // 'default' is display_id parameter hardcoded to default.
+ (array) $param2, // $param2 is array of view arguments
+ 0, // offset
+ 0 // limit
+ // format_output which we're not passing at all.
+ );
}
break;