summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorKjartan Mannes2001-10-20 20:58:59 (GMT)
committerKjartan Mannes2001-10-20 20:58:59 (GMT)
commit3b7425aefb77641468a2183e83481e644b4eb9d6 (patch)
tree8a3bdc78c17d30db8c959ca022310f0e056504b5 /index.php
parent83c5209c151a7c4ad062355d8b59114eed41a4b7 (diff)
- added a new configuration option that lets you set various index.php
variables. Example: set site_frontpage to "node" and site_frontpage_extra to "$meta = 'news'" and only nodes with that meta tag will be displayed on your main page. This requires some internal knowledge of how the various modules work and what settings can be passed to <module>_page() functions.
Diffstat (limited to 'index.php')
-rw-r--r--index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.php b/index.php
index e2c810b..ff7a1e3 100644
--- a/index.php
+++ b/index.php
@@ -5,6 +5,7 @@ include_once "includes/common.inc";
page_header();
+eval(variable_get("site_frontpage_extra", "") .";");
$function = variable_get("site_frontpage", "node") ."_page";
$function();