[contributions:vauxia] /modules/qb/modules/qbwc qbwc.inc qbwc.module
User: vauxia Branch: HEAD Date: Tue, 03 Feb 2009 21:31:26 +0000 Modified files: /modules/qb/modules/qbwc qbwc.inc qbwc.module Log message: MORE IMPORTANT CHANGES - hook_qbwc_response is DEPRECATED. Instead, your hook_qbwc_request should include a 'callback' array, which defines the function(s) you want to call with the result data. - Results are passed to these callbacks as arrays, not as the XML response. This is more consistent with how you're passing data to the API. - In keeping with how sarvab is using the API, you can also pass a 'data' element. Thus, hook_qbwc_request looks like: function hook_qbwc_request() { return array(array( 'name' => 'CustomerQueryRq', 'callback' => array('my_qbwc_response'), 'data' => array('I LIKE BUNNIES' => TRUE), )); } And your callback looks like: function my_qbwc_response($response=array(), $data=array(), $status, $message) {} Links: http://cvs.drupal.org/diff.php?path=contributions/modules/qb/modules/qbwc/qb... http://cvs.drupal.org/diff.php?path=contributions/modules/qb/modules/qbwc/qb...
participants (1)
-
drupal-cvs@drupal.org