You are here

function filebrowser_install in Filebrowser 3.x

Same name and namespace in other branches
  1. 8.2 filebrowser.install \filebrowser_install()
  2. 8 filebrowser.install \filebrowser_install()
  3. 6.2 filebrowser.install \filebrowser_install()
  4. 6 filebrowser.install \filebrowser_install()
  5. 7.4 filebrowser.install \filebrowser_install()
  6. 7.2 filebrowser.install \filebrowser_install()
  7. 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);
}