Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. <?php
  2.  
  3. use DrupaltaxonomyEntityVocabulary;
  4.  
  5. /**
  6. * Delete vocabulary MY_VOCABULARY.
  7. */
  8. function MYMODULE_update_8101(&$sandbox) {
  9. $vid = 'MY_VOCABULARY_MACHINE_NAME';
  10. $vocabulary = Vocabulary::load($vid);
  11. if ($vocabulary) {
  12. $vocabulary->delete();
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement