diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-11-23 17:10:46 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-11-23 17:10:46 +0000 |
commit | f5be5fdfa406db65aaf8c64050b7ed1971a44ec6 (patch) | |
tree | 1758ae72d02cbdbaed8651dc92578d6093f1f2aa /themes | |
parent | dcf8e14a60dc312c0bc43e9e8f25e9106d4c7240 (diff) | |
download | brdo-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 'themes')
-rw-r--r-- | themes/marvin/marvin.theme | 4 | ||||
-rw-r--r-- | themes/unconed/unconed.theme | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme index 87dbe9f8b..91aea2c27 100644 --- a/themes/marvin/marvin.theme +++ b/themes/marvin/marvin.theme @@ -69,8 +69,8 @@ print " <tr><td colspan=\"2\"> </td></tr>\n"; - if ($main) { - print " <tr><td colspan=\"2\">". $this->links(link_node($node)) ."</td></tr>\n"; + if ($links = link_node($node, $main)) { + print " <tr><td colspan=\"2\">". $this->links($links) ."</td></tr>\n"; } print "</table>\n"; diff --git a/themes/unconed/unconed.theme b/themes/unconed/unconed.theme index 95c36244f..e0eae11c2 100644 --- a/themes/unconed/unconed.theme +++ b/themes/unconed/unconed.theme @@ -110,8 +110,8 @@ </TD> </TR> <?php - if ($main) { - echo "<TR BGCOLOR=\"". $this->bgcolor3 ."\"><TD BGCOLOR=\"". $this->bgcolor3 ."\" ALIGN=\"right\" COLSPAN=\"2\">[ ". $this->links(link_node($node)) ." ]</TD></TR>"; + if ($links = link_node($node, $main)) { + echo "<TR BGCOLOR=\"". $this->bgcolor3 ."\"><TD BGCOLOR=\"". $this->bgcolor3 ."\" ALIGN=\"right\" COLSPAN=\"2\">[ ". $this->links($links) ." ]</TD></TR>"; } ?> </TABLE></TD></TR></TABLE><BR> |