diff --git a/islandora_basic_image/islandora_basic_image.info b/islandora_basic_image/islandora_basic_image.info new file mode 100644 index 00000000..c7429959 --- /dev/null +++ b/islandora_basic_image/islandora_basic_image.info @@ -0,0 +1,6 @@ +name = Islandora Basic Image +description = "Content type, viewer, and hooks for Basic Image objects" +package = Islandora +version = 7.x-dev +core = 7.x +dependencies[] = islandora diff --git a/islandora_basic_image/islandora_basic_image.install b/islandora_basic_image/islandora_basic_image.install new file mode 100644 index 00000000..ae877c09 --- /dev/null +++ b/islandora_basic_image/islandora_basic_image.install @@ -0,0 +1,30 @@ + 'basic_image', + 'name' => $t('Basic Image'), + 'base' => 'node_content', + 'description' => $t('An image object in Fedora'), + ); + + $basic_image_content_type = node_type_set_defaults($basic_image_content_type); + + $status = node_type_save($basic_image_content_type); + + $t_args = array('%name' => $basic_image_content_type->name); + + if ($status == SAVED_UPDATED) { + drupal_set_message($t('Updated %name content type.', $t_args)); + } + elseif ($status == SAVED_NEW) { + drupal_set_message($t('Created %name content type.', $t_args)); + } + +} + +function islandora_basic_image_uninstall() { + node_type_delete('basic_image'); +} diff --git a/islandora_basic_image/islandora_basic_image.module b/islandora_basic_image/islandora_basic_image.module new file mode 100644 index 00000000..d27608f9 --- /dev/null +++ b/islandora_basic_image/islandora_basic_image.module @@ -0,0 +1,10 @@ +