You are here

function cmis_admin_settings in CMIS API 6

Same name and namespace in other branches
  1. 6.2 cmis.module \cmis_admin_settings()

Prepare and generate entry form for CMIS settings.

1 string reference to 'cmis_admin_settings'
cmis_menu in ./cmis.module
Implementation of hook_menu() for CMIS module.

File

./cmis.module, line 77

Code

function cmis_admin_settings() {
  $vendors = array(
    'None',
  );
  foreach (cmis_get_vendors() as $key => $vendor) {
    $vendors[$key] = $vendor['name'];
  }
  $form['cmis_settings'] = array(
    '#type' => 'fieldset',
    '#title' => t('CMIS Settings'),
    '#description' => t('Settings for cmis repositories'),
    '#collapsible' => FALSE,
    '#collapsed' => FALSE,
  );
  $form['cmis_settings']['cmis_vendor'] = array(
    '#type' => 'select',
    '#title' => t('Vendors'),
    '#default_value' => variable_get('cmis_vendor', null),
    '#options' => $vendors,
    '#description' => t('Select the CMIS vendor'),
  );
  return system_settings_form($form);
}