You are here

function flysystem_config_form_validate in Flysystem 7

Validation callback for flysystem_config_form().

File

./flysystem.admin.inc, line 51
Configuration page callbacks for Flysystem.

Code

function flysystem_config_form_validate(array &$form, array &$form_state) {
  if ($form_state['values']['sync_from'] === $form_state['values']['sync_to']) {
    form_error($form['sync_from'], t('"Sync from" and "Sync to" cannot be the same scheme.'));
    form_error($form['sync_to']);
  }
}