Drupal modules for browsing and managing Fedora-based digital repositories.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
467 B

<?php
/**
* @file
* Install hooks for this module.
*/
/**
* Implements hook_install().
*
* Creates shared fields for content types using MODS metadata.
*/
function islandora_mods_install() {
$t = get_t();
$mods_field = array(
'field_name' => ISLANDORA_MODS_FIELD,
'type' => 'xml_field_xml',
);
field_create_field($mods_field);
drupal_set_message($t("Created field @field",
array("@field" => ISLANDORA_MODS_FIELD)));
}