function filebrowser_uninstall in Filebrowser 8
Same name and namespace in other branches
- 8.2 filebrowser.install \filebrowser_uninstall()
- 6.2 filebrowser.install \filebrowser_uninstall()
- 6 filebrowser.install \filebrowser_uninstall()
- 7.4 filebrowser.install \filebrowser_uninstall()
- 7.2 filebrowser.install \filebrowser_uninstall()
- 7.3 filebrowser.install \filebrowser_uninstall()
- 3.x filebrowser.install \filebrowser_uninstall()
Implements hook_uninstall().
Our content types will live on in the Drupal installation, even after this module is uninstalled. This is a good thing, since it allows the user to make decisions about their fate. Therefore we should give the user the option of deleting them.
Since we told Drupal that our locked_content_type is locked, we now have to tell it to unlock.
File
- ./
filebrowser.install, line 55 - Install, update and uninstall routines for filebrowser module.
Code
function filebrowser_uninstall() {
// Allow dir_listing to be deleted.
$locked = Drupal::state()
->get('node.type.locked');
unset($locked['dir_listing']);
Drupal::state()
->set('node.type.locked', $locked);
}