You are here

function wsclient_rest_has_old_formatter in Web service client 7

Determines whether the formatter is defined old-style. Provided for backward compatibility.

Return value

boolean

2 calls to wsclient_rest_has_old_formatter()
WSClientRESTEndpoint::client in wsclient_rest/wsclient_rest.inc
wsclient_rest_has_custom_formatter in wsclient_rest/wsclient_rest.module
Determines whether custom formatter is defined in settings: "custom" means that it implements the HttpClientFormatter interface but has no corresponding implementation in info hook.

File

wsclient_rest/wsclient_rest.module, line 166
Web service client endpoint for invoking a RESTful service.

Code

function wsclient_rest_has_old_formatter($settings) {
  return !empty($settings['formatter']) && new $settings['formatter']() instanceof HttpClientFormatter;
}