Create the node reaction for loading nodes.

Pseudo Code for overrides the node load controller

class CSINodeController extends NodeController {
  public function load($ids = array(), $conditions = array()) {
    // If not loading a specific revision, look for and load a revision matching
    // the currently active revision tag.
    if (empty($conditions[$this->revisionKey]) &&
        !path_is_admin(current_path()) &&
        ($site_tag = elc_workflow_get_tag())) {

      // Use the Manager to get the override information for this node
    }

    return parent::load($ids, $conditions);
  }
}
CommentFileSizeAuthor
#5 1676884.patch59.76 KBe2thex
#5 1676884-from-1669878.diff6.03 KBe2thex
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

indytechcook’s picture

Assigned: Unassigned » jec006
indytechcook’s picture

Assigned: jec006 » indytechcook
indytechcook’s picture

Assigned: indytechcook » e2thex
e2thex’s picture

This is in branch 1676884 branched from 1669878

e2thex’s picture

Assigned: e2thex » indytechcook
Status: Active » Needs review
FileSize
6.03 KB
59.76 KB

Added a class EntityLoadReaction but am only using it in the node load reaction

indytechcook’s picture

Status: Needs review » Fixed

Merged

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mynet sohbet’s picture

Version: » 7.x-1.x-dev

very nice work really like to thank everyone who contributed to