array(_mollom_authentication()))); if ($result === FALSE && ($error = xmlrpc_error())) { // In any case, log the error. $messages[] = array( 'Error @errno from %server for %method: %message' => array( '@errno' => $error->code, '%server' => $server, '%method' => $method, '%message' => $error->message, ), ); // Skip to the next server in case of any error, except if we have a // MOLLOM_ERROR, which indicates a bogus configuration. In this case, stop // trying, since all servers will fail. if ($error->code === MOLLOM_ERROR) { break; } } // Otherwise, we have a valid result. else { break; } } // Allow other modules to alter the server list. Internal use only. drupal_alter('mollom_server_list', $result); if (is_array($result)) { _mollom_watchdog_multiple($messages, WATCHDOG_DEBUG); return $result; } else { _mollom_watchdog_multiple($messages, WATCHDOG_ERROR); return xmlrpc_errno(); } }