Cover image for Programming Drupal 7 Entities.
Programming Drupal 7 Entities.
Title:
Programming Drupal 7 Entities.
Author:
Michael, Sammy.
ISBN:
9781782166535
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (166 pages)
Contents:
Programming Drupal 7 Entities -- Table of Contents -- Programming Drupal 7 entities -- Credits -- About the Author -- Acknowledgement -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Using the example code -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Understanding Entities -- Introducing entities -- Entity and solution modules -- Introducing entity types, bundles, and fields -- Types -- Bundles -- Fields -- Drupal core entity structure -- Powerful entity use cases -- User profiles -- Internationalization -- Commerce products -- Our use case -- Summary -- 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 -- Create -- Drush commands -- Code snippet -- Retrieve -- Drush commands -- Code snippet -- Update -- Drush commands -- Code snippet -- Delete -- Drush commands -- Code snippet -- Safely using text property values -- Self-imposed limitation of entity programming -- References -- A note about EntityFieldQuery -- Summary -- 3. Developing with Non-fieldable Entities -- What are non-fieldable entities? -- File entities -- Vocabulary entities -- Recipe site vocabularies -- Summary -- 4. Developing with Fieldable Entities -- What are fieldable entities? -- Node entities -- Comment entities -- Term entities -- Summary -- 5. Developing with Fields -- Field types -- Single-value and multi-value fields -- Structure fields -- Field type-specific code -- File and image fields -- Link fields -- Datetime fields.

Putting it all together -- Converting the recipe content type to use fields -- Creating fields -- Exporting fields to a feature -- Copying the code to the recipe module -- Tweaking recipe.module and recipe.info -- Upgrading recipe module -- Summary -- 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 -- Exporting field collection and fields -- Copying the code to the recipe module -- Tweaking recipe.module -- Updating code is unnecessary -- Summary -- 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 -- Storing bundle information -- Exposing bundle information and handling access rights -- Adding the support code -- Summary -- 8. Expose Remote Entities -- Introducing the Remote Entity API -- Requirements for exposing remote entities -- Implementing remote entity exposure -- Database schema -- Connection code -- Remote query code -- Entity exposure code -- Entity metadata API integration -- Import and administration code -- Running -- Adding write support -- Customization for your use case -- Summary -- Index.
Abstract:
The book follows a standard tutorial-based approach to create, retrieve, update, and delete Drupal 7 entities, their properties and fields.Programming Drupal 7 Entities is perfect for intermediate or advanced developers new to Drupal entity development who are looking to get a good grounding in how to code using the new paradigm. It's assumed that you will have some experience in PHP development already, and being vaguely familiar with Drupal, GIT, and Drush will also help.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: