From 1c26e2cee1dfde11eb505db66ec2b97baa7244d9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 1 Mar 2010 07:39:12 +0000 Subject: - Patch #728820 by David_Rothstein: clean up installation of required modules. --- modules/node/node.install | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'modules/node/node.install') diff --git a/modules/node/node.install b/modules/node/node.install index b4eeaeab6..473bc4efd 100644 --- a/modules/node/node.install +++ b/modules/node/node.install @@ -356,6 +356,23 @@ function node_schema() { return $schema; } +/** + * Implements hook_install(). + */ +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(); +} + /** * Implements hook_update_dependencies(). */ -- cgit v1.2.3