Skip to content

Instantly share code, notes, and snippets.

@jordandukart
Created February 10, 2014 19:58
Show Gist options
  • Save jordandukart/8923040 to your computer and use it in GitHub Desktop.
Save jordandukart/8923040 to your computer and use it in GitHub Desktop.
Islandora Groups DS Modify
<?php
/**
* Implements hook_islandora_datastream_ingested().
**/
function foo_islandora_datastream_ingested(AbstractObject $object, AbstractDatastream $datastream) {
if ($datastream->id == 'TECHMD') {
// Do things like changing the content of the DC datastream to blah.
if (isset($object['DC'])) {
$object['DC']->content = 'blah';
$object['DC']->label = 'My awesomely edited Dublin Core';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment