diff --git a/includes/orphaned_objects.inc b/includes/orphaned_objects.inc index 8f61a8a1..e4a861cd 100644 --- a/includes/orphaned_objects.inc +++ b/includes/orphaned_objects.inc @@ -6,7 +6,7 @@ */ /** - * Builds the management form for the Orphaned Objects module. + * Builds the Orphaned Islandora Objects management form. * * @param array $form * An array representing a form within Drupal. @@ -37,7 +37,7 @@ function islandora_orphaned_objects_manage_form($form, $form_state) { ); } else { - $orphaned_objects = islandora_orphaned_objects_get_orphaned_objects(); + $orphaned_objects = islandora_get_orphaned_objects(); $rows = array(); foreach ($orphaned_objects as $orphaned_object) { $pid = $orphaned_object['object']['value']; @@ -124,7 +124,7 @@ function islandora_orphaned_objects_manage_confirm_submit($form, &$form_state) { * @return array * An array containing the results of the orphaned objects queries. */ -function islandora_orphaned_objects_get_orphaned_objects() { +function islandora_get_orphaned_objects() { $connection = islandora_get_tuque_connection(); // SPARQL: get orphaned objects, exclude any with a living parent. $object_query = << t('Time elapsed: @elapsed
Estimated time remaining @estimate.'), 'error_message' => t('An error has occurred.'), 'finished' => 'islandora_orphaned_objects_delete_batch_finished', - 'file' => drupal_get_path('module', 'islandora_orphaned_objects') . '/includes/batch.inc', + 'file' => drupal_get_path('module', 'islandora') . '/includes/orphaned_objects.inc', ); return $batch; } diff --git a/islandora.module b/islandora.module index 0cde906e..ee2cc6b2 100644 --- a/islandora.module +++ b/islandora.module @@ -402,7 +402,7 @@ function islandora_menu() { 'description' => 'List of orphaned Islandora objects.', 'page callback' => 'drupal_get_form', 'page arguments' => array('islandora_orphaned_objects_manage_form'), - 'access arguments' => array('manage orphaned objects'), + 'access arguments' => array('ISLANDORA_MANAGE_ORPHANED_OBJECTS'), 'file' => 'includes/orphaned_objects.inc', ); $items['admin/islandora/restore/manage'] = array( @@ -631,7 +631,7 @@ function islandora_permission() { 'title' => t('Replace datastreams'), 'description' => t('Add new datastream content as latest version.'), ), - 'manage orphaned objects' => array( + 'ISLANDORA_MANAGE_ORPHANED_OBJECTS' => array( 'title' => t('Manage orphaned Islandora objects'), 'description' => t('View a list of orphaned Islandora objects.'), ),