function faq_install in Frequently Asked Questions 8
Same name and namespace in other branches
- 5.2 faq.install \faq_install()
- 5 faq.install \faq_install()
- 6 faq.install \faq_install()
- 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);
}