diff --git a/modules/content_retriever/content_retriever.module b/modules/content_retriever/content_retriever.module index bc38756750e5018f3809e2d3fd438d66e048c539..feff6b7720e21bec1711b375ca05c498a0a31180 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;