Skip to content
Snippets Groups Projects
Commit a522bfbd authored by Alex Barth's avatar Alex Barth
Browse files

Clean up delete/revert language.

parent 45f2b692
No related branches found
No related tags found
No related merge requests found
...@@ -226,11 +226,19 @@ function feeds_ui_create_form_submit($form, &$form_state) { ...@@ -226,11 +226,19 @@ function feeds_ui_create_form_submit($form, &$form_state) {
function feeds_ui_delete_form(&$form_state, $importer) { function feeds_ui_delete_form(&$form_state, $importer) {
$form['#redirect'] = 'admin/build/feeds'; $form['#redirect'] = 'admin/build/feeds';
$form['#importer'] = $importer; $form['#importer'] = $importer;
if ($importer->export_type & EXPORT_IN_CODE) {
$title = t('Would you really like to revert the importer @importer?', array('@importer' => $importer->config['name']));
$button_label = t('Revert');
}
else {
$title = t('Would you really like to delete the importer @importer?', array('@importer' => $importer->config['name']));
$button_label = t('Delete');
}
return confirm_form($form, return confirm_form($form,
t('Would you really like to delete the configuration !id?', array('!id' => $importer->id)), $title,
$form['#redirect'], $form['#redirect'],
t('This action cannot be undone.'), t('This action cannot be undone.'),
t('Delete') $button_label
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment