Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / install.twig
1 /**
2  * Implements hook_install().
3  */
4 function {{ machine_name }}_install() {
5   // Populate the default {node_access} record.
6   db_insert('node_access')
7     ->fields(array(
8       'nid' => 0,
9       'gid' => 0,
10       'realm' => 'all',
11       'grant_view' => 1,
12       'grant_update' => 0,
13       'grant_delete' => 0,
14     ))
15     ->execute();
16 }