From f104d3cc12134fc574373d6a643d9c84a317de44 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 26 Sep 2003 10:04:09 +0000 Subject: - Committed the admin menu integration patch. Thanks Adrian, Stefan and others. --- modules/page/page.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/page/page.module') diff --git a/modules/page/page.module b/modules/page/page.module index 842f90e14..f03699cce 100644 --- a/modules/page/page.module +++ b/modules/page/page.module @@ -95,8 +95,10 @@ function page_link($type) { } } - if ($type == "menu.create" && user_access("maintain static pages")) { - $links[] = l(t("create static page"), "node/add/page", array("title" => t("Add a new static page."))); + if ($type == "system") { + if (user_access("maintain static pages")) { + menu("node/add/page", t("create static page"), NULL, NULL, 0); + } } return $links; -- cgit v1.2.3