function node_install
Same name in other branches
- 9 core/modules/node/node.install \node_install()
- 8.9.x core/modules/node/node.install \node_install()
- 10 core/modules/node/node.install \node_install()
- 11.x core/modules/node/node.install \node_install()
Implements hook_install().
File
-
modules/
node/ node.install, line 436
Code
function node_install() {
// Populate the node access table.
db_insert('node_access')->fields(array(
'nid' => 0,
'gid' => 0,
'realm' => 'all',
'grant_view' => 1,
'grant_update' => 0,
'grant_delete' => 0,
))
->execute();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.