You are here

function backup_migrate_nodesquirrel_credentials_settings_form in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 6.3 includes/destinations.nodesquirrel.inc \backup_migrate_nodesquirrel_credentials_settings_form()

NodeSquirrel settings form.

2 calls to backup_migrate_nodesquirrel_credentials_settings_form()
backup_migrate_destination_nodesquirrel::before_backup_form in includes/destinations.nodesquirrel.inc
Returns a form to be completed before saving to the destination can be complete.
backup_migrate_nodesquirrel_settings_form in includes/destinations.nodesquirrel.inc
NodeSquirrel settings form.

File

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

Code

function backup_migrate_nodesquirrel_credentials_settings_form($key = '', $status) {
  $collapse = !empty($status);
  $form['nodesquirrel_credentials'] = array(
    '#type' => 'fieldset',
    '#title' => t('NodeSquirrel Credentials'),
    '#collapsible' => $collapse,
    '#collapsed' => $collapse,
  );
  $form['nodesquirrel_credentials']['nodesquirrel_secret_key'] = array(
    '#type' => 'textfield',
    '#title' => t('Secret Key'),
    '#size' => 80,
    '#default_value' => $key,
  );
  if (empty($key)) {
    $form['nodesquirrel_credentials']['secret_key_help'] = backup_migrate_nodesquirrel_get_activate_help_text();
  }
  return $form;
}