function backup_migrate_ui_manual_backup_load_profile_form in Backup and Migrate 8.3
Same name and namespace in other branches
- 8.2 backup_migrate.module \backup_migrate_ui_manual_backup_load_profile_form()
- 5.2 backup_migrate.module \backup_migrate_ui_manual_backup_load_profile_form()
- 6.3 backup_migrate.module \backup_migrate_ui_manual_backup_load_profile_form()
- 6.2 backup_migrate.module \backup_migrate_ui_manual_backup_load_profile_form()
- 7.3 backup_migrate.module \backup_migrate_ui_manual_backup_load_profile_form()
- 7.2 backup_migrate.module \backup_migrate_ui_manual_backup_load_profile_form()
The backup/export load profile form.
1 string reference to 'backup_migrate_ui_manual_backup_load_profile_form'
- backup_migrate_ui_manual_backup_advanced in ./
backup_migrate.module - The menu callback for advanced manual backups.
File
- ./
backup_migrate.module, line 532 - Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (e.g. cache_*)
Code
function backup_migrate_ui_manual_backup_load_profile_form($form, &$form_state, $profile = NULL) {
$form = array();
$profile_options = _backup_migrate_get_profile_form_item_options();
if (count($profile_options) > 0) {
$profile_options = array(
0 => t('-- Select a Settings Profile --'),
) + $profile_options;
$form['profile'] = array(
"#title" => t("Settings Profile"),
"#collapsible" => TRUE,
"#collapsed" => FALSE,
"#prefix" => '<div class="container-inline">',
"#suffix" => '</div>',
"#tree" => FALSE,
"#description" => t("You can load a profile. Any changes you made below will be lost."),
);
$form['profile']['profile_id'] = array(
"#type" => "select",
"#title" => t("Load Settings"),
'#default_value' => is_object($profile) ? $profile
->get_id() : 0,
"#options" => $profile_options,
);
$form['profile']['load_profile'] = array(
'#type' => 'submit',
'#value' => t('Load Profile'),
);
}
return $form;
}