You are here

function services_endpoint_load in Services 7.3

Same name and namespace in other branches
  1. 6.3 services.module \services_endpoint_load()

Load a single endpoint.

Parameters

string $name: The name of the endpoint.

Return value

stdClass The endpoint configuration.

19 calls to services_endpoint_load()
rest_server_server in servers/rest_server/rest_server.module
Starting point of the REST server.
ServicesAliasTests::setUp in tests/functional/ServicesAliasTests.test
Sets up a Drupal site for running functional and integration tests.
ServicesArgumentsTestCase::saveNewEndpoint in tests/functional/ServicesArgumentsTests.test
ServicesParserTests::setUp in tests/functional/ServicesParserTests.test
Sets up a Drupal site for running functional and integration tests.
ServicesResourceDisabledTest::saveNewEndpoint in tests/functional/ServicesResourceDisabledTests.test
Save a new endpoint without any resources enabled. This is a method from ServicesWebTestCase that has been modified.

... See full list

File

./services.module, line 422
Provides a generic but powerful API for web services.

Code

function services_endpoint_load($name) {
  ctools_include('export');
  $result = ctools_export_load_object('services_endpoint', 'names', array(
    $name,
  ));
  if (isset($result[$name])) {
    return $result[$name];
  }
  return FALSE;
}