function backup_migrate_nodesquirrel_credentials_settings_form in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.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 70 - Functions to handle the NodeSquirrel backup destination.
Code
function backup_migrate_nodesquirrel_credentials_settings_form($key = '') {
$form['nodesquirrel_credentials'] = array(
'#type' => 'fieldset',
'#title' => t('NodeSquirrel Credentials'),
);
$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'] = nodesquirrel_get_activate_help_text();
}
return $form;
}