You are here

function hosting_task_backup_delete_form_validate in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 site/hosting_site.backups.inc \hosting_task_backup_delete_form_validate()
  2. 7.3 site/hosting_site.backups.inc \hosting_task_backup_delete_form_validate()

Implements hosting_task_TASK_TYPE_form_validate().

File

site/hosting_site.backups.inc, line 65
Site backup functions.

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.'));
  }
}