diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Form/TermDelete.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Form/TermDelete.php index 78aa9b6..1b68eab 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Form/TermDelete.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Form/TermDelete.php @@ -101,7 +101,7 @@ public function buildForm(array $form, array &$form_state, TermInterface $taxono public function submitForm(array &$form, array &$form_state) { $this->term->delete(); $vocabulary = $this->entityManager->getStorageController('taxonomy_vocabulary')->load(array($this->term->bundle())); - // @todo Replace procedural code http://drupal.org/node/1980982 + // @todo Move to storage controller http://drupal.org/node/1988712 taxonomy_check_vocabulary_hierarchy(reset($vocabulary), array('tid' => $this->term->id())); drupal_set_message(t('Deleted term %name.', array('%name' => $this->term->label()))); watchdog('taxonomy', 'Deleted term %name.', array('%name' => $this->term->label()), WATCHDOG_NOTICE);