Browse Source

updated getCollectionQuery to call out an alter for other modules to update the query (specifically for the xacml module, but others could alter as well)

pull/140/head
Jason MacWilliams 13 years ago
parent
commit
21a6fd1aee
  1. 10
      CollectionClass.inc

10
CollectionClass.inc

@ -34,12 +34,12 @@ class CollectionClass {
}
public static function getCollectionQuery($pid) {
if ($query = self::getCollectionQueryFromStream($pid)) {
return $query;
}
else {
return self::getDefaultCollectionQuery($pid);
$query = self::getCollectionQueryFromStream($pid);
if (!$query) {
$query = self::getDefaultCollectionQuery($pid);
}
drupal_alter("islandora_collection_query", $query, $pid);
return $query;
}
protected static function getCollectionQueryFromStream($pid) {

Loading…
Cancel
Save