function filebrowser_install in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 filebrowser.install \filebrowser_install()
- 8 filebrowser.install \filebrowser_install()
- 6.2 filebrowser.install \filebrowser_install()
- 6 filebrowser.install \filebrowser_install()
- 7.4 filebrowser.install \filebrowser_install()
- 7.2 filebrowser.install \filebrowser_install()
- 7.3 filebrowser.install \filebrowser_install()
Implements hook_install()
File
- ./
filebrowser.install, line 33 - Install, update and uninstall functions for the Filebrowser module.
Code
function filebrowser_install() {
// Do not allow to delete the dir_listing node type.
$locked = Drupal::state()
->get('node.type.locked');
$locked['dir_listing'] = 'dir_listing';
Drupal::state()
->set('node.type.locked', $locked);
}