summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-11-23 17:10:46 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-11-23 17:10:46 +0000
commitf5be5fdfa406db65aaf8c64050b7ed1971a44ec6 (patch)
tree1758ae72d02cbdbaed8651dc92578d6093f1f2aa /includes/common.inc
parentdcf8e14a60dc312c0bc43e9e8f25e9106d4c7240 (diff)
downloadbrdo-f5be5fdfa406db65aaf8c64050b7ed1971a44ec6.tar.gz
brdo-f5be5fdfa406db65aaf8c64050b7ed1971a44ec6.tar.bz2
- modified node_save so that revisions are not validated using check_input,
as this breaks revisions. - modified link_node() to take a third parameter $main, which will be passed on to _link hooks. This lets modules decide which links a node will get when shown on the main page, or when not. - updated themes to use the new syntax.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc
index e1f2dcc11..fabee01bf 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -350,10 +350,10 @@ function link_page() {
return $links;
}
-function link_node($node) {
+function link_node($node, $main = 0) {
foreach (module_list() as $name) {
if (module_hook($name, "link")) {
- $links = array_merge($links, module_invoke($name, "link", "node", $node));
+ $links = array_merge($links, module_invoke($name, "link", "node", $node, $main));
}
}