You are here

function hosting_task_backup_delete_form_validate in Hostmaster (Aegir) 6

Implementation of hook_form_alter()

File

modules/hosting/task/hosting_task.module, line 452
Web server node type is defined here.

Code

function hosting_task_backup_delete_form_validate($form, &$form_state) {
  if ($form['parameters']['no_backups']) {
    form_set_error('no_backups', t('There are no valid backups available.'));
  }
  if (!$form['parameters']['#post']['parameters']) {
    form_set_error('no_backups', t('No backups were selected for deletion.'));
  }
}