Programming Drupal 7 Entities

Expose local or remote data as Drupal 7 entities and build custom solutions
Preview in Mapt

Programming Drupal 7 Entities

Sammy Spets

Expose local or remote data as Drupal 7 entities and build custom solutions
Mapt Subscription
FREE
$29.99/m after trial
eBook
$13.30
RRP $18.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$13.30
$34.99
$29.99p/m after trial
RRP $18.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Programming Drupal 7 Entities Book Cover
Programming Drupal 7 Entities
$ 18.99
$ 13.30
Drupal 7 Media Book Cover
Drupal 7 Media
$ 26.99
$ 18.90
Buy 2 for $30.80
Save $15.18
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781782166528
Paperback134 pages

Book Description

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.

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 Programming Drupal 7 Entities.

Table of Contents

Chapter 1: Understanding Entities
Introducing entities
Entity and solution modules
Introducing entity types, bundles, and fields
Powerful entity use cases
Our use case
Summary
Chapter 2: Developing with Entity Metadata Wrappers
Introducing entity metadata wrappers
Creating an entity metadata wrapper object
Standard entity properties
Entity introspection
Using an entity metadata wrapper
Safely using text property values
Self-imposed limitation of entity programming
References
A note about EntityFieldQuery
Summary
Chapter 3: Developing with Non-fieldable Entities
What are non-fieldable entities?
File entities
Vocabulary entities
Recipe site vocabularies
Summary
Chapter 4: Developing with Fieldable Entities
What are fieldable entities?
Node entities
Comment entities
Term entities
Summary
Chapter 5: Developing with Fields
Field types
Single-value and multi-value fields
Structure fields
Converting the recipe content type to use fields
Summary
Chapter 6: Developing with Field Collections
Before Drupal 7
Creating a field collection field
Field collection entities
Adding a field collection to a node
Attaching a field collection to a content type
Summary
Chapter 7: Expose Local Entities
Motivation for exposing entities
Fast track your data exposure
Allow fields on your entity
Give it multiple bundles
Administration interface and exportability
Summary
Chapter 8: Expose Remote Entities
Introducing the Remote Entity API
Requirements for exposing remote entities
Implementing remote entity exposure
Running
Adding write support
Customization for your use case
Summary

What You Will Learn

  • Manipulate and utilize comment, file, field collection, node, term, user, and vocabulary entities
  • Attach, manipulate, and utilize date, file, image, link, number, text, and term reference fields
  • Write type-agnostic code dealing with more types of Drupal data than ever before
  • Upgrade a legacy Drupal node module to expose and utilize entities
  • Expose your legacy database tables as fully-fledged Drupal entities
  • Batch import remote data and expose them as entities
  • Glean good coding practices for dealing with entities

Authors

Table of Contents

Chapter 1: Understanding Entities
Introducing entities
Entity and solution modules
Introducing entity types, bundles, and fields
Powerful entity use cases
Our use case
Summary
Chapter 2: Developing with Entity Metadata Wrappers
Introducing entity metadata wrappers
Creating an entity metadata wrapper object
Standard entity properties
Entity introspection
Using an entity metadata wrapper
Safely using text property values
Self-imposed limitation of entity programming
References
A note about EntityFieldQuery
Summary
Chapter 3: Developing with Non-fieldable Entities
What are non-fieldable entities?
File entities
Vocabulary entities
Recipe site vocabularies
Summary
Chapter 4: Developing with Fieldable Entities
What are fieldable entities?
Node entities
Comment entities
Term entities
Summary
Chapter 5: Developing with Fields
Field types
Single-value and multi-value fields
Structure fields
Converting the recipe content type to use fields
Summary
Chapter 6: Developing with Field Collections
Before Drupal 7
Creating a field collection field
Field collection entities
Adding a field collection to a node
Attaching a field collection to a content type
Summary
Chapter 7: Expose Local Entities
Motivation for exposing entities
Fast track your data exposure
Allow fields on your entity
Give it multiple bundles
Administration interface and exportability
Summary
Chapter 8: Expose Remote Entities
Introducing the Remote Entity API
Requirements for exposing remote entities
Implementing remote entity exposure
Running
Adding write support
Customization for your use case
Summary

Book Details

ISBN 139781782166528
Paperback134 pages
Read More

Read More Reviews

Recommended for You

Drupal 7 Module Development Book Cover
Drupal 7 Module Development
$ 26.99
$ 18.90
Drupal 7 Views Cookbook Book Cover
Drupal 7 Views Cookbook
$ 31.99
$ 22.40
Drupal 7 Theming Cookbook Book Cover
Drupal 7 Theming Cookbook
$ 26.99
$ 18.90
Drupal 7 Themes Book Cover
Drupal 7 Themes
$ 23.99
$ 16.80
Drupal Rules How-to Book Cover
Drupal Rules How-to
$ 12.99
$ 9.10
Drupal 7 Development by Example Beginner’s Guide Book Cover
Drupal 7 Development by Example Beginner’s Guide
$ 29.99
$ 21.00