You are here

function hosting_task_restore_form_validate in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 task/hosting_task.module \hosting_task_restore_form_validate()
  2. 7.3 task/hosting_task.module \hosting_task_restore_form_validate()

Implements hook_form_alter().

TODO: Move restore functions to hosting_site, where backup functions are.

File

task/hosting_task.module, line 698
Web server node type is defined here.

Code

function hosting_task_restore_form_validate($form, &$form_state) {
  if (isset($form['parameters']['no_backups'])) {
    form_set_error('no_backups', t('There are no valid backups available.'));
  }
}