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) { public static function getCollectionQuery($pid) {
if ($query = self::getCollectionQueryFromStream($pid)) { $query = self::getCollectionQueryFromStream($pid);
return $query; if (!$query) {
} $query = self::getDefaultCollectionQuery($pid);
else {
return self::getDefaultCollectionQuery($pid);
} }
drupal_alter("islandora_collection_query", $query, $pid);
return $query;
} }
protected static function getCollectionQueryFromStream($pid) { protected static function getCollectionQueryFromStream($pid) {

Loading…
Cancel
Save