Browse Source

Add module_loads just incase and more consistency.

pull/298/head
Jordan Dukart 12 years ago
parent
commit
af933e66ff
  1. 5
      includes/tuque_wrapper.inc

5
includes/tuque_wrapper.inc

@ -35,14 +35,15 @@ $islandora_module_path = drupal_get_path('module', 'islandora');
* Allow modules to alter an object before a mutable event occurs.
*/
function islandora_alter_object(AbstractFedoraObject $object, array &$context) {
$types = islandora_build_hook_list('islandora_object', $object->models);
drupal_alter($types, $object, $context);
module_load_include('inc', 'islandora', 'includes/utilities');
drupal_alter(islandora_build_hook_list('islandora_object', $object->models) ,$object, $context);
}
/**
* Allow modules to alter a datastream before a mutable event occurs.
*/
function islandora_alter_datastream(AbstractFedoraObject $object, AbstractDatastream $datastream, array &$context) {
module_load_include('inc', 'islandora', 'includes/utilities');
$types = array();
foreach ($object->models as $model) {
$types[] = "{$model}_{$datastream->id}";

Loading…
Cancel
Save