|
|
@ -30,7 +30,7 @@ |
|
|
|
function islandora_basic_collection_menu() { |
|
|
|
function islandora_basic_collection_menu() { |
|
|
|
$items = array(); |
|
|
|
$items = array(); |
|
|
|
$items['islandora/object/%/manage/collection'] = array( |
|
|
|
$items['islandora/object/%/manage/collection'] = array( |
|
|
|
'title' => 'Collection Related', |
|
|
|
'title' => 'Collection related', |
|
|
|
'page callback' => 'islandora_basic_collection_manage_object', |
|
|
|
'page callback' => 'islandora_basic_collection_manage_object', |
|
|
|
'page arguments' => array(2), |
|
|
|
'page arguments' => array(2), |
|
|
|
'type' => MENU_LOCAL_TASK, |
|
|
|
'type' => MENU_LOCAL_TASK, |
|
|
@ -39,7 +39,7 @@ function islandora_basic_collection_menu() { |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$items['admin/islandora/basic_collection'] = array( |
|
|
|
$items['admin/islandora/basic_collection'] = array( |
|
|
|
'title' => 'Islandora Basic Collection', |
|
|
|
'title' => 'Islandora basic collection', |
|
|
|
'description' => 'Configure the basic Collection solution pack.', |
|
|
|
'description' => 'Configure the basic Collection solution pack.', |
|
|
|
'page callback' => 'drupal_get_form', |
|
|
|
'page callback' => 'drupal_get_form', |
|
|
|
'access arguments' => array('administer site configuration'), |
|
|
|
'access arguments' => array('administer site configuration'), |
|
|
@ -105,7 +105,7 @@ function islandora_basic_collection_manage_object($object_id) { |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$form['collection_manager']['create_child_collection'] = array( |
|
|
|
$form['collection_manager']['create_child_collection'] = array( |
|
|
|
'#title' => t('Create Child Collection'), |
|
|
|
'#title' => t('Create child collection'), |
|
|
|
'#type' => 'fieldset', |
|
|
|
'#type' => 'fieldset', |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
@ -113,7 +113,7 @@ function islandora_basic_collection_manage_object($object_id) { |
|
|
|
|
|
|
|
|
|
|
|
$form['collection_manager']['manage_policies'] = array( |
|
|
|
$form['collection_manager']['manage_policies'] = array( |
|
|
|
'#type' => 'fieldset', |
|
|
|
'#type' => 'fieldset', |
|
|
|
'#title' => t('Manage Collection Policies'), |
|
|
|
'#title' => t('Manage collection policies'), |
|
|
|
'#collapsible' => TRUE, |
|
|
|
'#collapsible' => TRUE, |
|
|
|
'#collapsed' => TRUE, |
|
|
|
'#collapsed' => TRUE, |
|
|
|
); |
|
|
|
); |
|
|
@ -122,7 +122,7 @@ function islandora_basic_collection_manage_object($object_id) { |
|
|
|
|
|
|
|
|
|
|
|
$form['collection_manager']['change_content_models'] = array( |
|
|
|
$form['collection_manager']['change_content_models'] = array( |
|
|
|
'#type' => 'fieldset', |
|
|
|
'#type' => 'fieldset', |
|
|
|
'#title' => t('Change Content Models'), |
|
|
|
'#title' => t('Change content models'), |
|
|
|
'#collapsible' => TRUE, |
|
|
|
'#collapsible' => TRUE, |
|
|
|
'#collapsed' => TRUE, |
|
|
|
'#collapsed' => TRUE, |
|
|
|
); |
|
|
|
); |
|
|
@ -131,7 +131,7 @@ function islandora_basic_collection_manage_object($object_id) { |
|
|
|
|
|
|
|
|
|
|
|
$form['collection_manager']['migrate_members'] = array( |
|
|
|
$form['collection_manager']['migrate_members'] = array( |
|
|
|
'#type' => 'fieldset', |
|
|
|
'#type' => 'fieldset', |
|
|
|
'#title' => t('Migrate Members'), |
|
|
|
'#title' => t('Migrate members'), |
|
|
|
'#collapsible' => TRUE, |
|
|
|
'#collapsible' => TRUE, |
|
|
|
'#collapsed' => TRUE, |
|
|
|
'#collapsed' => TRUE, |
|
|
|
); |
|
|
|
); |
|
|
@ -140,16 +140,17 @@ function islandora_basic_collection_manage_object($object_id) { |
|
|
|
|
|
|
|
|
|
|
|
$form['collection_manager']['delete_members'] = array( |
|
|
|
$form['collection_manager']['delete_members'] = array( |
|
|
|
'#type' => 'fieldset', |
|
|
|
'#type' => 'fieldset', |
|
|
|
'#title' => t('Delete Members of this Collection'), |
|
|
|
'#title' => t('Delete members of this collection'), |
|
|
|
'#collapsible' => TRUE, |
|
|
|
'#collapsible' => TRUE, |
|
|
|
'#collapsed' => TRUE, |
|
|
|
'#collapsed' => TRUE, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$form['collection_manager']['delete_members']['form'] = drupal_get_form('islandora_collection_deletion_form', $object_id); |
|
|
|
$form['collection_manager']['delete_members']['form'] = drupal_get_form('islandora_collection_deletion_form', $object_id); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Pass the form around any modules that are interested so that they can add their own collection management functions. |
|
|
|
|
|
|
|
module_invoke_all('islandora_collection_manager', $form); |
|
|
|
|
|
|
|
|
|
|
|
return $form; |
|
|
|
return $form; |
|
|
|
|
|
|
|
|
|
|
|
// return 'Collection CModel edit function ' . $object_id; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|