function services_method_get in Services 5
Same name and namespace in other branches
- 6 services.module \services_method_get()
- 6.2 services.module \services_method_get()
- 7 services.module \services_method_get()
5 calls to services_method_get()
- services_admin_browse_method in ./
services_admin_browse.inc - services_admin_browse_test in ./
services_admin_browse.inc - services_admin_browse_test_submit in ./
services_admin_browse.inc - services_admin_browse_test_unserialize_args in ./
services_admin_browse.inc - services_method_call in ./
services.module - This is the magic function through which all remote method calls must pass.
File
- ./
services.module, line 537 - The module which provides the core code for drupal services
Code
function services_method_get($method_name) {
static $method_cache;
if (!isset($method_cache[$method_name])) {
foreach (services_get_all() as $method) {
if ($method_name == $method['#method']) {
$method_cache[$method_name] = $method;
break;
}
}
}
return $method_cache[$method_name];
}