D7 l En//es, en/ty types, & bundles l Fields formerly CCK l PHDUG Core Leader l How to define a custom en/ty l Using En/tyFieldQuery, En/ty Property Info and Leveraging the En/ty Metatdata Wrapper
in Drupal 7 l Represents a concept or noun l Different types store different data l Generally in a single DB table l Node l Title, body, created /mestamp, etc. l User l Username, created /mestamp, last visit /mestamp
of en/tes from core l The user fusionx1 with uid 10000 l The page “Drupal Pilipinas” with nid 77 l Any En/ty can be loaded with en/ty_load () l en/ty_load(‘node’, array(33, 44)) l Returns an array with two nodes with nids 33 and 44 l Core provides some convenience wrapper l node_load() and user_load()
l Page, Ar/cle and Blog Post l Three content types (bundles) of node en/ty type l Not all en/ty type have more than one bundle l User l No subtypes; concept stands on its own
l Store addi/onal data per content type l Fivestar l Contrib module leverage contrib CCK API l Allows nodes to be rated(1-‐5) l Let users rate pages and blogs
per en/ty type l Applies power of CCk to all en/ty types l Not just nodes l Fivestar l Contrib module leverages core FIELD API l Allows en//es to be rated l Let users rate pages, users, comments, custom en/ty type
l Can query en/ty proper%es and field data l Can query field data across en/ty types – Eg: “return all pages and users tagged with taxonomy term 456” l Returns en/ty IDs – Usually you’ll then load with en/ty_load()