Cover by Sammy Spets

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

Implementing remote entity exposure

For the practical part of this chapter, we will expose a USDA food description list as entities in our recipe website. We will complete a new module named usda_remote, which depends on the clients and remote_entity modules for connection to a remote RESTful service exposing Drupal entities using the services_entity module. We will only concern ourselves with the client side of this setup.

You will find the usda_remote module in the sites/all/modules/customized/usda_remote folder inside the example code you downloaded earlier. The list of files within that folder is as follows:

  • usda_remote.admin.inc: Contains administration UI code
  • usda_remote.batch.inc: Batch entity import code
  • usda_remote.clients.inc: Subclass ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required