Programming Drupal 7 Entities

Preparing link to download Please wait... Download

E-Book Overview

Writing code for manipulating Drupal data has never been easier! Learn to dice and serve your data as you slowly peel back the layers of the Drupal entity onion. Next, expose your legacy local and remote data to take full advantage of Drupal's vast solution space. <em>Programming Drupal 7 Entities is a practical, hands-on guide that provides you with a thorough knowledge of Drupal's entity paradigm and a number of clear step-by-step exercises, which will help you take advantage of the real power that is available when developing using entities. This book looks at the Drupal 7 entity paradigm, and breaks down the mystery and confusion that developers face when building custom solutions using entities. It will take you through a number of clear, practical recipes that will help you to take full advantage of Drupal entities in your web solutions without much coding. You will also learn how to expose local and remote data to give your legacy data new life as fully-fledged Drupal entities that can be used by other modules such as views, rules, and so on. In addition to this, you'll learn to create, retrieve, update, and delete (CRUD) entities, their properties and fields, along with some programmatic wizardry to manipulate complex entities such as field collections. If you want to develop quickly and easily using Drupal entities, then this is the book for you. You will learn everything you need to know to develop code and expose data using entities in <em>Programming Drupal 7 Entities.

E-Book Content

Programming Drupal 7 Entities Expose local or remote data as Drupal 7 entities and build custom solutions Sammy Spets BIRMINGHAM - MUMBAI Programming Drupal 7 Entities Copyright © 2013 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: June 2013 Production Reference: 1190613 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78216-652-8 www.packtpub.com Cover Image by Suresh Mogre ([email protected]) Credits Author Sammy Spets Reviewers James Roughton Project Coordinator Suraj Bist Proofreader Dirk Manuel Michelle Williamson Indexer Acquisition Editor Priya Subramani James Jones Graphics Lead Technical Editor Ronak Dhruv Harsha Bharwani Production Coordinator Technical Editors Kirtee Shingan Sanhita Sawant Dennis John Cover Work Kirtee Shingan About the Author Since 2004, Sammy Spets has been finding pleasure in his life making Drupal do wild things. During that time, Sammy volunteered to be a core maintainer for Drupal 6 and a maintainer of the ecommerce module, which was the commerce module of choice way back when. For the ecommerce module, Sammy made design changes to the payment system, built a f