Browse Source

Initial theme function for solution pack list.

pull/105/head
Alexander O'Neill 14 years ago
parent
commit
dfb4a244a1
  1. 6
      formClass.inc
  2. 38
      plugins/islandora_newspaper/islandora_newspaper.module

6
formClass.inc

@ -42,9 +42,9 @@ class formClass {
); );
$items['admin/settings/fedora_repository/demoobjects'] = array( $items['admin/settings/fedora_repository/demoobjects'] = array(
'title' => t('Install demos'), 'title' => t('Solution Packs'),
'description' => t('Install example content models and collections to get started using Islandora and Fedora.'), 'description' => t('Install content models and collections required by installed solution packs.'),
'page callback' => 'fedora_repository_install_demos_page', 'page callback' => 'fedora_repository_solution_packs_page',
'access arguments' => array('add fedora datastreams'), 'access arguments' => array('add fedora datastreams'),
'type' => MENU_LOCAL_TASK, 'type' => MENU_LOCAL_TASK,
); );

38
plugins/islandora_newspaper/islandora_newspaper.module

@ -1 +1,39 @@
<?php <?php
/**
* Implementation of hook_requried_fedora_objects()
*/
function islandora_newspaper_required_fedora_objects() {
// array( 'path-to-foxml-file', 'pid', 'dsid', 'path-to-datastream-file', int dsversion, boolean required)
$module_path = drupal_get_path('module', 'islandora_newspaper');
return array(
array(
'foxml_file' => "$module_path/newspapers_issueCModel.xml",
'pid' => NULL,
'dsid' => NULL,
'datastream_file' => NULL,
'dsversion' => NULL,
),
array(
'foxml_file' => "$module_path/newspapers_pageCModel.xml",
'pid' => NULL,
'dsid' => NULL,
'datastream_file' => NULL,
'dsversion' => NULL,
),
array(
'foxml_file' => "$module_path/newspapers_viewerSdep-issueCModel.xml",
'pid' => NULL,
'dsid' => NULL,
'datastream_file' => NULL,
'dsversion' => NULL,
),
array(
'foxml_file' => "$module_path/newspapers_viewerSdep-pageCModel.xml",
'pid' => NULL,
'dsid' => NULL,
'datastream_file' => NULL,
'dsversion' => NULL,
),
);
}
Loading…
Cancel
Save