ISLANDORA_MODS_FIELD, 'entity_type' => 'node', 'bundle' => $bundle_name, 'label' => $t("MODS XML"), 'description' => $t("A MODS record for the Fedora resource"), 'required' => FALSE, ); field_create_instance($mods_field_instance); $message = $t('Field %name was successfully added to %bundle', array( '%name' => ISLANDORA_MODS_FIELD, '%bundle' => $bundle_name, )); drupal_set_message($message); } }