Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use DrupaltaxonomyEntityVocabulary;
- /**
- * Delete vocabulary MY_VOCABULARY.
- */
- function MYMODULE_update_8101(&$sandbox) {
- $vid = 'MY_VOCABULARY_MACHINE_NAME';
- $vocabulary = Vocabulary::load($vid);
- if ($vocabulary) {
- $vocabulary->delete();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement