From ff2ae1855d20c7a4a4f4ccc8d93d32cc0abb0d58 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Tue, 25 Sep 2001 22:13:34 +0000 Subject: - added node_page() to list what index.php used to list. - made the front page of the system configurable. Now any _page() can be set as the default page. Default is node_page(). --- modules/system.module | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/system.module') diff --git a/modules/system.module b/modules/system.module index 31e676416..3cd3b7eaf 100644 --- a/modules/system.module +++ b/modules/system.module @@ -35,6 +35,8 @@ function system_view_options() { $output .= form_textarea("Footer message", "site_footer", variable_get("site_footer", ""), 55, 3, "This text will be displayed at the bottom of each page. Useful for adding a copyright notice to your pages."); $output .= form_textfield("Anonymous user", "anonymous", variable_get("anonymous", "Anonymous"), 30, 55, "The name used to indicate anonymous users."); $output .= form_textfield("Password words", "account_words", variable_get("account_words", "foo,bar,guy,neo,tux,moo,sun,asm,dot,god,axe,geek,nerd,fish,hack,star,mice,warp,moon,hero,cola,girl,fish,java,perl,boss,dark,sith,jedi,drop,mojo"), 55, 256, "Words used in the creation of passwords. Comma seperated list."); + foreach (module_list() as $name) { if (module_hook($name, "page")) $pages[$name] = $name; } + $output .= form_select("Default front page", "site_frontpage", variable_get("site_frontpage", "node"), $pages, "The default front page."); $output .= "
\n"; // caching: -- cgit v1.2.3