You are here

function faq_install in Frequently Asked Questions 8

Same name and namespace in other branches
  1. 5.2 faq.install \faq_install()
  2. 5 faq.install \faq_install()
  3. 6 faq.install \faq_install()
  4. 7 faq.install \faq_install()

Implements hook_install()

File

./faq.install, line 48
FAQ module install file.

Code

function faq_install() {
  $locked = Drupal::state()
    ->get('node.type.locked');
  $locked['faq'] = 'faq';
  Drupal::state()
    ->set('node.type.locked', $locked);
}