diff --git a/core/modules/taxonomy/taxonomy.admin.inc b/core/modules/taxonomy/taxonomy.admin.inc index 1916e91..4e81d1b 100644 --- a/core/modules/taxonomy/taxonomy.admin.inc +++ b/core/modules/taxonomy/taxonomy.admin.inc @@ -556,7 +556,7 @@ function taxonomy_vocabulary_confirm_delete($form, &$form_state, $vid) { * @see taxonomy_vocabulary_confirm_delete() */ function taxonomy_vocabulary_confirm_delete_submit($form, &$form_state) { - $status = entity_delete_multiple('taxonomy_vocabulary', array($form_state['values']['vid'])); + $form_state['taxonomy']['vocabulary']->delete(); drupal_set_message(t('Deleted vocabulary %name.', array('%name' => $form_state['values']['name']))); watchdog('taxonomy', 'Deleted vocabulary %name.', array('%name' => $form_state['values']['name']), WATCHDOG_NOTICE); $form_state['redirect'] = 'admin/structure/taxonomy'; diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module index 6051f22..54835ea 100644 --- a/core/modules/taxonomy/taxonomy.module +++ b/core/modules/taxonomy/taxonomy.module @@ -457,16 +457,6 @@ function taxonomy_term_save(Term $term) { } /** - * Deletes a term. - * - * @param $tid - * The term ID. - */ -function taxonomy_term_delete($tid) { - entity_delete_multiple('taxonomy_term', array($tid)); -} - -/** * Generates an array which displays a term detail page. * * @param Drupal\taxonomy\Plugin\Core\Entity\Term $term