Drupal modules for browsing and managing Fedora-based digital repositories.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

<?php
// $Id$
/**
* @file
* Administration page callbacks for the redmine_issuer module.
*/
/**
* Form builder. Configure Redmine parameters.
*
* @ingroup forms
* @see system_settings_form().
*/
function fedora_attach_admin() {
$options = drupal_map_assoc(explode(" ", variable_get('fedora_pids_allowed', 'default: demo: changeme: islandora: ilives: ')));
$default_value = variable_get('fedora_attach_pid_namespace', 'default:');
$isRestricted = variable_get('fedora_namespace_restriction_enforced',TRUE);
if (!in_array($default_value, $options) && $isRestricted) {
drupal_set_message( "The value last set here ($default_value) is not in the list of available PID namespaces (perhaps it has changed?). Please choose a valid option from the list.", 'warning' );
}
$form = array();
$form['fedora_attach_pid_namespace'] = array(
'#type' => 'select',
'#title' => t('Fedora Attach PID namespace'),
'#options' => $options,
'#default_value' => $default_value,
'#description' => t('The PID namespace into which the Fedora Attach module will ingest objects.'),
);
return (system_settings_form($form));
}