function fontyourface_uninstall in @font-your-face 8.3
Same name and namespace in other branches
- 6.2 fontyourface.install \fontyourface_uninstall()
- 6 fontyourface.install \fontyourface_uninstall()
- 7.2 fontyourface.install \fontyourface_uninstall()
Implements hook_uninstall().
File
- ./
fontyourface.install, line 25 - Font-Your-Face install/update/uninstall hook implementation.
Code
function fontyourface_uninstall() {
$vids = [
'font_classification',
'font_tags',
'languages_supported',
'font_designer',
'font_foundry',
];
foreach ($vids as $vid) {
$vocabulary = Vocabulary::load($vid);
if (!empty($vocabulary)) {
$vocabulary
->delete();
}
}
}