| 1 |
<?php |
<?php |
| 2 |
// $Id: casetracker_client.module,v 1.2.2.5 2008/03/29 19:51:54 sime Exp $ |
// $Id: casetracker_client.module,v 1.2.2.7 2008/04/04 05:28:49 sime Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_perm(). |
* Implementation of hook_perm(). |
| 147 |
$result = call_user_func_array('xmlrpc', $args); |
$result = call_user_func_array('xmlrpc', $args); |
| 148 |
$errors = xmlrpc_error(); |
$errors = xmlrpc_error(); |
| 149 |
if ($errors) { |
if ($errors) { |
| 150 |
dsm($errors); |
drupal_set_message( '<pre>'. |
| 151 |
|
"An error occurred while getting ". $url ."\n". "Arguments:\n- " . implode("\n- ", $args) ."\n\n". |
| 152 |
|
t('Error') ."\n". print_r( $errors, TRUE) .'</pre>', 'warning'); |
| 153 |
} |
} |
| 154 |
if (is_array($result)) { |
if (is_array($result)) { |
| 155 |
array_walk_recursive($result, 'casetracker_client_path_replace', $url_path); |
array_walk_recursive($result, 'casetracker_client_path_replace', $url_path); |