You are here

function patch_manager_settings_form_validate in Patch manager 7

Same name and namespace in other branches
  1. 6 patch_manager.module \patch_manager_settings_form_validate()

Form submit handler

1 string reference to 'patch_manager_settings_form_validate'
patch_manager_settings_form in ./patch_manager.module
Configuration form for patches

File

./patch_manager.module, line 253
Patch manager provides developers with tools for managing patches.

Code

function patch_manager_settings_form_validate($form, $form_state) {
  $status = _patch_manager_status($form_state['values']['patch_manager_path_patch']);
  if (!$status) {
    form_set_error('patch_manager_path_patch', t('Unable to execute patch binary, check that the binary exists and is executable.'));
  }
}