function feeds_ui_delete_form in Feeds 6
Same name and namespace in other branches
- 8.2 feeds_ui/feeds_ui.admin.inc \feeds_ui_delete_form()
- 7.2 feeds_ui/feeds_ui.admin.inc \feeds_ui_delete_form()
- 7 feeds_ui/feeds_ui.admin.inc \feeds_ui_delete_form()
Delete configuration form.
1 string reference to 'feeds_ui_delete_form'
- feeds_ui_menu in feeds_ui/
feeds_ui.module - Implementation of hook_menu().
File
- feeds_ui/
feeds_ui.admin.inc, line 227 - Contains all page callbacks, forms and theming functions for Feeds administrative pages.
Code
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, $title, $form['#redirect'], t('This action cannot be undone.'), $button_label);
}