Internet Commons

Your website development partner

Controls: show

Library Folder

Comments:

[log in] or [register] to leave a comment for this folder.


Go to: all folders

Go to: folder treetops

Options: show

Contact:

mail@internetcommons.ca

Website:

[home] [about] [help]

Subsites:
Members:

[profiles]

Warning: The Navigator is unavailable for this bookmark because there's an unrecognized value in the bookmark's path or instanceid in the url; record relationships have most likely been changed by the website custodians. Such changes are legitimate, and this is not a system error (no subject). dismiss navigator
Cover page Folder details

Drupal Data Model

Setup: 07-May-2013 [229]

Part of unassigned

With lots of software dev experience, but little Drupal experience, here's my take:

The assembled collection of render arrays, culminating in $page, is a classic Data Model consisting of (as we know) nested arrays. Each of these nested arrays is an Abstract Data Type often (but not always) identified by its "#type" property. Each abstract data type consists of properties ("#"-prefixed) and data (non-"#"-prefixed).

In a more general sense, I see Drupal as a dispatch-driven state change machine with a service-oriented architecture. The state change machine through its service calls to modules (aka "hooks") alters (parts of) the data model in progressive stages through the life cycle of a website request, until the data structure conforms to a renderable structure - hence the name "renderable". But it's important to note that some of the data doesn't start out as renderable. For an example, follow the stages of transformation of $user data to user->content and finally the &$build (renderable) structure.

Drupal Data Model

Setup: 07-May-2013 [229]

Part of unassigned

-- Details --
Sorted by: ·custom order· (if any), title (asc). Page 1 of 1 (items 1-3 of 3)

Render Arrays in Drupal 7

Part of: Drupal Data Model

Date: 07-May-2013 direct link [230]

page 1 of 1 (items 1-3 of 3) per page:
(showing first display)
(showing last display)