Browse Source

coder

pull/482/head
Alan Stanley 11 years ago
parent
commit
f3a4ea9ae4
  1. 13
      islandora.module

13
islandora.module

@ -109,7 +109,7 @@ function islandora_menu() {
'file' => 'includes/metadata.inc', 'file' => 'includes/metadata.inc',
'access arguments' => array('administer site configuration'), 'access arguments' => array('administer site configuration'),
); );
$items['admin/islandora/solution_pack_config'] = array( $items['admin/islandora/solution_pack_config'] = array(
'title' => 'Solution pack configuration', 'title' => 'Solution pack configuration',
'description' => 'Configure Islandora solution packs.', 'description' => 'Configure Islandora solution packs.',
'access callback' => 'islandora_find_package', 'access callback' => 'islandora_find_package',
@ -1852,9 +1852,9 @@ function islandora_repair_drupal_filter() {
} }
} }
/** /**
* Implements hook_islandora_metadata_display_info(). * Implements hook_islandora_metadata_display_info().
*/ */
function islandora_islandora_metadata_display_info() { function islandora_islandora_metadata_display_info() {
return array( return array(
'dublin_core' => array( 'dublin_core' => array(
@ -1892,13 +1892,14 @@ function islandora_islandora_datastream_access($op, AbstractDatastream $datastre
return $result; return $result;
} }
/** /**
* Access for submenu items. * Access for submenu items.
* *
* @param string $package_name * @param string $package_name
* Name of the package * Name of the package
* *
* @return bool * @return bool
* Access granted
*/ */
function islandora_find_package($package_name) { function islandora_find_package($package_name) {
$results = system_get_info('module'); $results = system_get_info('module');
@ -1910,4 +1911,4 @@ function islandora_find_package($package_name) {
} }
} }
return $found && user_access('administer site configuration'); return $found && user_access('administer site configuration');
} }

Loading…
Cancel
Save