O'Reilly logo

Drupal Web Services by Trevor James

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

Creating a Services module and running a custom callback

In the last example, we used the Node Service module that comes packaged with the Services module to query our database and return specific node IDs (and respective node arrays). We also queried returning specific content type fields using the Call method of the Node Service module that uses the node.get function to return the respective node data and specific fields.

We can also write our own custom module and group this module with the other Services modules to return a set of data of a specific content type's nodes. So, for example, we may want to return all of the nodes of a specific content type in our case, it will be the Photo gallery type that we queried in our previous examples. ...

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