diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-03-08 08:16:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-03-08 08:16:23 +0000 |
commit | 3958a714cda4b04ab9bfa24c13711158ae45d17c (patch) | |
tree | 1d6ee60843158402f864c55340afc03deccd9ad4 /modules/documentation.module | |
parent | f516626a293edd613cb823db88e36dcf7e1fb8f4 (diff) | |
download | brdo-3958a714cda4b04ab9bfa24c13711158ae45d17c.tar.gz brdo-3958a714cda4b04ab9bfa24c13711158ae45d17c.tar.bz2 |
- some important changes to our theme API which can be summerized as:
abstract() + article() = story()
abstract() and article() have been merged into a new function story()
which looks like:
function story($story_object, $reply) {
if (!reply) {
// full story
}
else {
// main page version / abstract
}
}
This should allow you to "compress" your theme as abstract() and
article() tended to be 98% identical.
=> I didn't really merge your themes so I leave it up to *you* to
improved the code!!! Do it ASAP as we release drupal 2.00 in 7
days.
In future we'll have similar functions for other content types as
for example:
review($review, $reply);
enquete($enquete, $reply);
...
Diffstat (limited to 'modules/documentation.module')
-rw-r--r-- | modules/documentation.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/documentation.module b/modules/documentation.module index 5af32ec42..a149af49f 100644 --- a/modules/documentation.module +++ b/modules/documentation.module @@ -247,7 +247,7 @@ function documentation() { $theme->header(); // displays the header of a page for each $article to be displayed { - $theme->article($article); + $theme->story($story); // displays a themed article or story } $theme->footer(); |