diff options
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 23 |
1 files changed, 13 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) { |