You are here

function clients_connection_drupal_services_6_2::formatEndpoint in Web Service Clients 6.2

Same name and namespace in other branches
  1. 7.3 connections/clients_drupal/clients_drupal.inc \clients_connection_drupal_services_6_2::formatEndpoint()
  2. 7.2 connections/clients_drupal/clients_drupal.inc \clients_connection_drupal_services_6_2::formatEndpoint()

Format the connection's endpoint as a link.

Parameters

$url: The connection's endpoint.

Return value

The string to display in the admin UI. Subclasses may format this as a link to the remote site.

Overrides clients_connection_base::formatEndpoint

File

connections/clients_drupal/clients_drupal.inc, line 488
Contains classes for Client connections handlers.

Class

clients_connection_drupal_services_6_2
Drupal client for services on a Drupal 6 site for Services 6.x-2.x.

Code

function formatEndpoint($url) {
  $base_url = str_replace('services/xmlrpc', '', $url);
  $link = l($base_url, $base_url);
  return $link . 'services/xmlrpc';
}