Browse Source

Removed uneeded wrapper element from namespace tab on admin config.

pull/350/head
Nigel Banks 12 years ago
parent
commit
523c2d8e9f
  1. 33
      includes/admin.form.inc

33
includes/admin.form.inc

@ -59,25 +59,20 @@ function islandora_repository_admin(array $form, array &$form_state) {
'islandora_namespace' => array( 'islandora_namespace' => array(
'#type' => 'fieldset', '#type' => 'fieldset',
'#title' => t('Namespaces'), '#title' => t('Namespaces'),
'wrapper' => array( 'islandora_namespace_restriction_enforced' => array(
'#type' => 'markup', '#type' => 'checkbox',
'#prefix' => '<div id="islandora-namespace">', '#title' => t('Enforce namespace restrictions'),
'#suffix' => '</div>', '#description' => t("Allow administrator to restrict user's access to the PID namepaces listed below"),
'islandora_namespace_restriction_enforced' => array( '#default_value' => $restrict_namespaces,
'#type' => 'checkbox', ),
'#title' => t('Enforce namespace restrictions'), 'islandora_pids_allowed' => array(
'#description' => t("Allow administrator to restrict user's access to the PID namepaces listed below"), '#type' => 'textfield',
'#default_value' => $restrict_namespaces, '#title' => t('PID namespaces allowed in this Drupal install'),
), '#description' => t('A list of PID namespaces, separated by spaces, that users are permitted to access from this Drupal installation. <br /> This could be more than a simple namespace, e.g. <b>demo:mydemos</b>. <br /> The namespace <b>islandora:</b> is reserved, and is always allowed.'),
'islandora_pids_allowed' => array( '#default_value' => variable_get('islandora_pids_allowed', 'default: demo: changeme: ilives: islandora-book: books: newspapers: '),
'#type' => 'textfield', '#states' => array(
'#title' => t('PID namespaces allowed in this Drupal install'), 'invisible' => array(
'#description' => t('A list of PID namespaces, separated by spaces, that users are permitted to access from this Drupal installation. <br /> This could be more than a simple namespace, e.g. <b>demo:mydemos</b>. <br /> The namespace <b>islandora:</b> is reserved, and is always allowed.'), ':input[name="islandora_namespace_restriction_enforced"]' => array('checked' => FALSE),
'#default_value' => variable_get('islandora_pids_allowed', 'default: demo: changeme: ilives: islandora-book: books: newspapers: '),
'#states' => array(
'invisible' => array(
':input[name="islandora_namespace_restriction_enforced"]' => array('checked' => FALSE),
),
), ),
), ),
), ),

Loading…
Cancel
Save