diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-04-02 09:45:57 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-04-02 09:45:57 +0000 |
commit | 1e4308a939723529b665ac7e0e0356950a0507f7 (patch) | |
tree | 335e3af799a8e203e4a502f814868d5778cfa48f /includes | |
parent | 1e8c9d8192d0f8c17c64bcd09f34219f4832b368 (diff) | |
download | brdo-1e4308a939723529b665ac7e0e0356950a0507f7.tar.gz brdo-1e4308a939723529b665ac7e0e0356950a0507f7.tar.bz2 |
- made the user information block into two different blocks. One for
login and one for user information.
- added link to help in book module (post-patch, see below).
- applied various patches:
Patch by Greg Tyrelle <greg@tyrelle.net>
- tracker module now shows usernames next to comments.
Patch by Moshe Weitzman <moshe@wallaware.com>
- book module has a more complete help.
- added administrative link to export book to html
- fixed non book nodes not showing up in trees.
Patch by moshe weitzman <weitzman@tejasa.com>
- links can be defined in the configuration file.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 23 | ||||
-rw-r--r-- | includes/conf.php | 9 |
2 files changed, 22 insertions, 10 deletions
diff --git a/includes/common.inc b/includes/common.inc index 847a0839c..ce5b3a25c 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -594,18 +594,21 @@ function field_merge($a, $b) { } function link_page() { - - $links[] = "<a href=\"index.php\">". t("home") ."</a>"; - - foreach (module_list() as $name) { - if (module_hook($name, "link")) { - $links = array_merge($links, module_invoke($name, "link", "page")); + global $custom_links; + + if (is_array($custom_links)) { + return $custom_links; + } + else { + $links[] = "<a href=\"index.php\">". t("home") ."</a>"; + foreach (module_list() as $name) { + if (module_hook($name, "link")) { + $links = array_merge($links, module_invoke($name, "link", "page")); + } } + return $links; } - - - return $links; -} +} function link_node($node, $main = 0) { foreach (module_list() as $name) { diff --git a/includes/conf.php b/includes/conf.php index f0963df62..74bb1f061 100644 --- a/includes/conf.php +++ b/includes/conf.php @@ -45,4 +45,13 @@ $themes = array("UnConeD" => array( # appropriately. $languages = array("en" => "English"); +# Custom Navigation Links override the standard page links +# offerred by most Drupal modules. Administrators may +# add/remove/reorder nav links here. These links are typically +# displayed in a row near the top of every page. +# $custom_links = array( +# "<a href=\"\index.php\">home</a>", +# "<a href=\"\module.php?mod=user\">school</a>", +# "<a href=\"\module.php?mod=blog\">work</a>"); + ?>
\ No newline at end of file |