function wsclient_global_type_name in Web service client 7
Map a service specific type name to the global type name.
1 call to wsclient_global_type_name()
- wsclient_type_info_populate in ./
wsclient.rules.inc - Helper function to recursively populate property information in a data type information array. Also adds a default label from the machine name.
File
- ./
wsclient.rules.inc, line 79 - Web service client - Rules integration.
Code
function wsclient_global_type_name($type, $service_name, $all_types) {
if (isset($all_types['wsclient_' . $service_name . '_' . $type])) {
return 'wsclient_' . $service_name . '_' . $type;
}
if (strpos($type, 'list<') === 0 && isset($all_types['wsclient_' . $service_name . '_' . substr($type, 5, -1)])) {
return 'wsclient_' . $service_name . '_' . substr($type, 5, -1);
}
return $type;
}