You are here

function ResourceFactory::loadParents in D7 Media 6

File

resource/resource.module, line 563
Resource API for Drupal, a replacement for files.

Class

ResourceFactory

Code

function loadParents($rid, $context = NULL, $media = NULL) {

  // select * from {resource_relationships} where child = $resource->id;
  // foreach parent { $parent[] = $this->loadId($child->rid)->context($context); }
  // return $parents;
}