You are here

function cmis_admin_settings_validate in CMIS API 6

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

Validate Setting inputs for CMIS

File

./cmis.module, line 104

Code

function cmis_admin_settings_validate($form, &$form_state) {

  // vendor is required
  $endpoint = $form_state['values']['cmis_vendor'];
  if ($endpoint == '') {
    form_set_error('cmis_vendor', t('You must specify the CMIS vendor.'));
  }
}