summaryrefslogtreecommitdiff
path: root/modules/node/node.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-01 07:39:12 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-01 07:39:12 +0000
commit1c26e2cee1dfde11eb505db66ec2b97baa7244d9 (patch)
tree8b6371f500ec89099e871200cfafe8c70cda1e83 /modules/node/node.install
parent1cfde5913d09de7ffaa52f98ef3c303cb363e524 (diff)
downloadbrdo-1c26e2cee1dfde11eb505db66ec2b97baa7244d9.tar.gz
brdo-1c26e2cee1dfde11eb505db66ec2b97baa7244d9.tar.bz2
- Patch #728820 by David_Rothstein: clean up installation of required modules.
Diffstat (limited to 'modules/node/node.install')
-rw-r--r--modules/node/node.install17
1 files changed, 17 insertions, 0 deletions
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
@@ -357,6 +357,23 @@ function node_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().
*/
function node_update_dependencies() {