diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-04-30 17:13:08 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-04-30 17:13:08 +0000 |
commit | fead09a8de391e2419bdac150a8b63c0228d16a2 (patch) | |
tree | 44b7b853340e8b67ad366674e98339d394700607 /modules/page.module | |
parent | c8d16d76f9ca0aa760435388a84482ec29258639 (diff) | |
download | brdo-fead09a8de391e2419bdac150a8b63c0228d16a2.tar.gz brdo-fead09a8de391e2419bdac150a8b63c0228d16a2.tar.bz2 |
Welp. Large commit ahead.
CHANGES:
- Added "read" and "write" permissions into drupal but removed
it again because - when finished after 3 hours of work - it
was considered nothing but added complexity that didn't buy
us anything. :I
(I'll explain this in detail on the mailing list, I guess.)
- Added a very simple help.module to group all available
documentation on a single page.
- Fixed bug in node_control(), book.module: UnConeD forgot to
global $user when updating the combobox code.
- Removed static wishlist.module: in future, the wishlist can
be maintained as a page in our collaborative book.
- Revised most of settings.module: tidied up the code and the
descriptions to accompany the settings and introduced a new
"default maximum number of nodes to display on the main page"
variable.
- Revised most of comment.module: the administration interface
looks better now, integrated node permissions, and -finally-
made it possible to delete comments.
- Polished on:
+ account.module
+ structure.module
+ locale.module
+ module.module
+ forum.module
- Form-ified:
+ account.php
+ account.module
+ setting.module
+ cvs.module
+ submit.php
+ comment.module
+ forum.module
+ book.module
+ page.module
+ locale.module
- Updated CHANGELOG
INFO:
- Designed a "generic tracker system with optional backends"
on paper. The idea is to allow registered users to hot-list
certain topics, individual nodes or threads (comments) and
to "plug-in" output backends like - for instance - an e-mail
digest. The design requires "intelligent blocks" though.
TODO:
- I want to tidy up the headline.module and backend.class as
well as merge in headlineRSS10.module. Julian spent quite
some time working on headline.module but I'm not sure what
he changed and whether he'd contribute it back?
Diffstat (limited to 'modules/page.module')
-rw-r--r-- | modules/page.module | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/modules/page.module b/modules/page.module index 0e188fe19..c6a2fbb86 100644 --- a/modules/page.module +++ b/modules/page.module @@ -31,28 +31,16 @@ function page_status() { } function page_form($edit = array()) { - global $format; + global $format, $REQUEST_URI; - $output .= "<FORM ACTION=\"admin.php?mod=page\" METHOD=\"post\">\n"; + $form .= form_textfield(t("Subject"), "title", $edit[title], 50, 64); + $form .= structure_form("page", $edit); + $form .= form_textarea(t("Body"), "body", $edit[body], 50, 10); + $form .= form_select(t("Type"), "format", $edit[format], $format); + $form .= form_hidden("nid", $edit[nid]); + $form .= form_submit("Save page"); - $output .= "<B>Subject:</B><BR>\n"; - $output .= "<INPUT NAME=\"edit[title]\" SIZE=\"55\" VALUE=\"". check_textfield($edit[title]) ."\"><P>\n"; - - $output .= structure_form("page", $edit); - - $output .= "<B>Body:</B><BR>\n"; - $output .= "<TEXTAREA NAME=\"edit[body]\" COLS=\"55\" ROWS=\"10\" WRAP=\"virtual\">". check_textarea($edit[body]) ."</TEXTAREA><P>\n"; - - $output .= "<B>Type:</B><BR>\n"; - foreach ($format as $key=>$value) $options .= "<OPTION VALUE=\"$key\"". ($edit[format] == $key ? " SELECTED" : "") .">$value</OPTION>\n"; - $output .= "<SELECT NAME=\"edit[format]\">$options</SELECT><P>\n"; - - $output .= "<INPUT TYPE=\"hidden\" NAME=\"edit[nid]\" VALUE=\"$edit[nid]\">\n"; - - $output .= "<INPUT TYPE=\"submit\" NAME=\"op\" VALUE=\"Save page\">\n"; - $output .= "</FORM>\n"; - - return $output; + return form($REQUEST_URI, $form); } function page_save($edit) { |