Created
February 10, 2014 19:58
-
-
Save jordandukart/8923040 to your computer and use it in GitHub Desktop.
Islandora Groups DS Modify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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