From a522bfbdd73ce87ad3d8d5a12887a411f2625e38 Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Sat, 10 Jul 2010 23:13:21 +0000 Subject: [PATCH] Clean up delete/revert language. --- feeds_ui/feeds_ui.admin.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/feeds_ui/feeds_ui.admin.inc b/feeds_ui/feeds_ui.admin.inc index ce6b075c..3b56c83b 100644 --- a/feeds_ui/feeds_ui.admin.inc +++ b/feeds_ui/feeds_ui.admin.inc @@ -226,11 +226,19 @@ function feeds_ui_create_form_submit($form, &$form_state) { function feeds_ui_delete_form(&$form_state, $importer) { $form['#redirect'] = 'admin/build/feeds'; $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, - t('Would you really like to delete the configuration !id?', array('!id' => $importer->id)), + $title, $form['#redirect'], t('This action cannot be undone.'), - t('Delete') + $button_label ); } -- GitLab