function theme_backup_migrate_ui_manual_quick_backup_form in Backup and Migrate 8.2
Same name and namespace in other branches
- 6.2 backup_migrate.module \theme_backup_migrate_ui_manual_quick_backup_form()
- 7.2 backup_migrate.module \theme_backup_migrate_ui_manual_quick_backup_form()
Theme the quick backup form.
File
- ./
backup_migrate.module, line 409 - Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (e.g. cache_*)
Code
function theme_backup_migrate_ui_manual_quick_backup_form($form) {
$form = $form['form'];
// Remove the titles so that the pulldowns can be displayed inline.
unset($form['quickbackup']['source_id']['#title']);
unset($form['quickbackup']['destination_id']['#title']);
unset($form['quickbackup']['profile_id']['#title']);
$replacements = array(
'!from' => drupal_render($form['quickbackup']['source_id']),
'!to' => drupal_render($form['quickbackup']['destination_id']),
'!profile' => drupal_render($form['quickbackup']['profile_id']),
'!submit' => drupal_render($form['quickbackup']['submit']),
);
$form['quickbackup']['markup'] = array(
'#type' => 'markup',
"#prefix" => '<div class="container-inline">',
"#suffix" => '</div>',
'#markup' => t('Backup from !from to !to using !profile !submit', $replacements),
);
unset($form['quickbackup']['source_id']);
unset($form['quickbackup']['destination_id']);
unset($form['quickbackup']['profile_id']);
unset($form['quickbackup']['submit']);
return drupal_render_children($form);
}