summaryrefslogtreecommitdiff
path: root/modules/node/node.install
diff options
context:
space:
mode:
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() {