You are here

function backup_migrate_destination_nodesquirrel::edit_form_validate in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.3 includes/destinations.nodesquirrel.inc \backup_migrate_destination_nodesquirrel::edit_form_validate()
  2. 6.2 includes/destinations.nodesquirrel.inc \backup_migrate_destination_nodesquirrel::edit_form_validate()
  3. 7.2 includes/destinations.nodesquirrel.inc \backup_migrate_destination_nodesquirrel::edit_form_validate()

Submit the configuration form. Glue the url together and add the old password back if a new one was not specified.

Overrides backup_migrate_item::edit_form_validate

File

includes/destinations.nodesquirrel.inc, line 387
Functions to handle the NodeSquirrel backup destination.

Class

backup_migrate_destination_nodesquirrel
A destination for sending database backups to the NodeSquirel backup service.

Code

function edit_form_validate($form, &$form_state) {
  $key = trim($form_state['values']['settings']['secret_key']);
  if ($error = $this
    ->vaidate_key($key)) {
    form_set_error('secret_key', $error);
  }
}