function taxonomy_manager_term_confirm_delete_submit in Taxonomy Manager 6.2
Same name and namespace in other branches
- 6 taxonomy_manager.admin.inc \taxonomy_manager_term_confirm_delete_submit()
- 7 taxonomy_manager.admin.inc \taxonomy_manager_term_confirm_delete_submit()
Submit handler to delete a term after confirmation.
2 calls to taxonomy_manager_term_confirm_delete_submit()
- taxonomy_manager_form_delete_submit in ./
taxonomy_manager.admin.inc - Submit handler for deleting terms
- taxonomy_manager_form_submit in ./
taxonomy_manager.admin.inc - submits the taxonomy manager form (only search button)
File
- ./
taxonomy_manager.admin.inc, line 1273 - Taxonomy Manager Admin
Code
function taxonomy_manager_term_confirm_delete_submit($form, &$form_state) {
taxonomy_manager_delete_terms($form_state['values']['selected_terms'], $form_state['values']['options']);
if (isset($form_state['values']['vid2'])) {
$form_state['redirect'] = 'admin/content/taxonomy_manager/double-tree/' . $form_state['values']['vid'] . '/' . $form_state['values']['vid2'];
}
else {
$form_state['redirect'] = 'admin/content/taxonomy_manager/voc/' . $form_state['values']['vid'];
}
drupal_set_message(t("Selected terms deleted"));
return;
}