You are here

function deploy_server_form_validate in Deploy - Content Staging 5

add deployment server form validator

File

./deploy.module, line 340

Code

function deploy_server_form_validate($form_id, $form_values) {
  if ($form_values['description'] == '') {
    form_set_error('description', t('Server description is required'));
  }
  if ($form_values['url'] == '') {
    form_set_error('url', t('URL is required'));
  }
}