diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-02-03 12:30:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-02-03 12:30:14 +0000 |
commit | d4867346f578906751f8ea0bd799c3fc1bfcbf48 (patch) | |
tree | b5ea49cfb114cfc7cbbd37cf83908164e2bbe6e8 /profiles | |
parent | ff1e4c669a64276a0d5c377bf69c1268c1fb796f (diff) | |
download | brdo-d4867346f578906751f8ea0bd799c3fc1bfcbf48.tar.gz brdo-d4867346f578906751f8ea0bd799c3fc1bfcbf48.tar.bz2 |
- Patch #367380 by Moshe: make block module optional.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/default/default.profile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/profiles/default/default.profile b/profiles/default/default.profile index 1c0b2a590..120228105 100644 --- a/profiles/default/default.profile +++ b/profiles/default/default.profile @@ -8,7 +8,7 @@ * An array of modules to enable. */ function default_profile_modules() { - return array('color', 'comment', 'help', 'menu', 'taxonomy', 'dblog'); + return array('block', 'color', 'comment', 'help', 'menu', 'taxonomy', 'dblog'); } /** @@ -90,6 +90,11 @@ function default_profile_task_list() { * modify the $task, otherwise discarded. */ function default_profile_tasks(&$task, $url) { + + // Enable 3 standard blocks. + db_query("INSERT INTO {block} (module, delta, theme, status, weight, region, pages, cache) VALUES ('%s', '%s', '%s', %d, %d, '%s', '%s', %d)", 'user', 'login', 'garland', 1, 0, 'left', '', -1); + db_query("INSERT INTO {block} (module, delta, theme, status, weight, region, pages, cache) VALUES ('%s', '%s', '%s', %d, %d, '%s', '%s', %d)", 'user', 'navigation', 'garland', 1, 0, 'left', '', -1); + db_query("INSERT INTO {block} (module, delta, theme, status, weight, region, pages, cache) VALUES ('%s', '%s', '%s', %d, %d, '%s', '%s', %d)", 'system', 'powered-by', 'garland', 1, 10, 'footer', '', -1); // Insert default user-defined node types into the database. For a complete // list of available node type attributes, refer to the node type API |