summaryrefslogtreecommitdiff
path: root/modules/book.module
Commit message (Collapse)AuthorAge
* - Patch #9649 by JonBob: fixed a buglet in the recent book patch. It triedDries Buytaert2004-07-31
| | | | to set book breadcrumbs for nodes that weren't books.
* - Patch #9543 by JonBob: added node-level access control!Dries Buytaert2004-07-31
|
* - Patch #5347 by JonBob:Dries Buytaert2004-07-30
| | | | | | | | | | | | | | | | | | | | | Here's a new patch that unifies the node/52 and book/view/52 paths for nodes. It involves a small change to hook_view(), which is discussed first: Currently hook_view() expects node modules to return a themed node. However, each module does this the same way; they modify $node as necessary, then call theme('node', $node) and return the result. We can refactor this so that the calling function node_view() calls theme('node') instead. By doing this, it becomes possible for hook_nodeapi('view') to be called after hook_view() where the node contents are filtered, and before theme('node') where the body is enclosed in other HTML. This way the book module can insert its navigation into the body right before the theming. Advantages of this refactoring: - I can use it for book.module to remove the extra viewing path. - The function of hook_nodeapi('view') becomes more like hook_view(), as neither will expect a return value. - We more closely follow the flow of other nodeapi calls, which usually directly follow their corresponding specific node type hooks (instead of preceding them). - The attachment.module people could use it to append their attachments in a list after the node. - Gabor could use it instead of his filter perversion for his "articles in a series" module. - A little less code in each view hook. - The content hook is no longer needed, so that means even less code. Disadvantages: - Any modules written to use nodeapi('view') could be affected (but these would all be post-4.4 modules). - Implementations of hook_view() would need to be updated (but return values would be ignored, so most would work without updates anyway). Now the patch takes advantage of this API shift to inject its navigation at the end of all book nodes, regardless of the viewing path. In fact, since the paths become identical, I've removed the book/view handler entirely. We should probably provide an .htaccess rewrite for this (one is still needed for node/view/nn anyway). At the same time, there is a check in book_block() that shows the block appropriately on these pages.
* - Patch #4269 and #4248 by Killes: added missing t()'s to book module.Dries Buytaert2004-07-25
|
* - Patch #8080 by TDobes: added teaser support to the book and page module.Dries Buytaert2004-07-13
|
* - Marked required fields on the node (story, book, page, blog) and commentDries Buytaert2004-07-08
| | | | | | | | | forms using the $required argument of the form_ functions. - Replaced all Optional's and Required's from the taxonomy forms with proper use of the form_ functions. Please check your contributed modules too!
* - Patch #9049 by JonBob: fixed a number of tab issues.Dries Buytaert2004-07-06
|
* - Patch by Steven and me: refactored the form handling of nodes. The node ↵Dries Buytaert2004-07-04
| | | | | | | | system is now using form_set_error() and friends like the rest of Drupal does. This makes for both a consistent user experience and consistent code. It simplifies the forms and validation code, however, it does change the node API slightly: * The _validate hook and the _nodeapi('validate') hook of the node API (1) no longer take an 'error' parameter and (2) should no longer return an error array. To set an error, call form_set_error(). * The _form hook of the node module no longer takes a form hook and should not worry about displaying errors. Ditto for _nodeapi('form_post') and _nodeapi('form_pre').
* - Patch #8670 by asimmonds: more spelling fixes.Dries Buytaert2004-06-21
|
* - Patch #8681 by asimmonds: more help text updatesDries Buytaert2004-06-21
|
* - Patch #8681 by stefan: fixed some broken URLs and help texts.Dries Buytaert2004-06-20
|
* Tabs patch!Dries Buytaert2004-06-18
| | | | | | | | | | | | | | | | | | CHANGES ------- + Introduced tabs. First, we extended the menu system to support tabs. Next, a tab was added for every link that was (1) an administrative action other than the implicit 'view' (2) relevant to that particular page only. This is illustrated by the fact that all tabs are verbs and that clicking a page's tab leads you to a subpage of that page. + Flattened the administration menu. The tabs helped simplify the navigation menu as I could separate 'actions' from 'navigation'. In addition, I removed the 'administer > configuration'-menu, renamed 'blocks' to 'sidebars' which I hope is a bit more descriptive, and made a couple more changes. Earlier, we already renamed 'taxonomy' to 'categorization' and we move 'statistics' under 'logs'. + Grouped settings. All settings have been grouped under 'administer > settings'. TODO ---- + Update core themes: only Xtemplate default supports tabs and even those look ugly. Need help. + Update contributed modules. The menu() hook changed drastically. Updating your code adhere the new menu() function should be 90% of the work. Moreover, ensure that your modue's admin links are still valid and that URLs to node get updated to the new scheme ('node/view/x' -> 'node/x').
* - Fixing bug 5845: Root page of book module does use <--break-->.Kjartan Mannes2004-06-03
|
* - Patch #4950 by Stefan (and Morbus): made watchdog messages translatable.Dries Buytaert2004-06-02
|
* - Code improvements by JonBob. Thanks.Dries Buytaert2004-05-17
|
* - Patch #7577 by JonBob: code improvements to the book, forum, page and poll ↵Dries Buytaert2004-05-09
| | | | module.
* - Patch #7211: changed 'root' to 'top-level' for sake of usability. I took ↵Dries Buytaert2004-04-24
| | | | Gerhard's patch and extended it so we did not miss any instances of 'root'.
* - Added support for 403 handling. Patch by JonBob. As a side benefit,Dries Buytaert2004-04-21
| | | | | | | | administrators will be able to define a custom 403 page, just as they can define 404 pages now. This needs to be documented in the "Changes since / migrating to ..." pages.
* Patch #5588 by bylund: XHTML improvements: <i> -> <em> and <b> -> <strong>.Dries Buytaert2004-03-20
|
* - Patch by Steven: removed redundant permission checks. These are no longerDries Buytaert2004-02-15
| | | | required thanks to the new 404 handling.
* - Patch 4332 by Goba: eliminate compose tips module.Dries Buytaert2004-01-27
|
* - Patch 5049 by JonBob: allow a module to define multiple node types.Dries Buytaert2004-01-27
|
* Patch 5287 by Stefan: multiline help texts should become inside a single ↵Dries Buytaert2004-01-23
| | | | $output.
* - Code beautifications: corrected indentation.Dries Buytaert2004-01-17
|
* - Removed the $help parameter from the _form hook. The help, typicallyDries Buytaert2004-01-17
| | | | submission guidelines, should be emmitted using the _help hook.
* - Bugfix: display the correct author. Patch by Nick.Dries Buytaert2004-01-15
|
* - Small bugfixDries Buytaert2004-01-15
|
* - Fixed 5218: book page "administer" removes original author.Dries Buytaert2004-01-14
|
* - Usability improvement: added a book navigation block.Dries Buytaert2004-01-14
|
* - Patch #5021: clean up URLs in _help texts. Patch by UnConeD.Dries Buytaert2004-01-11
|
* - Applied patch #4949: node_prepare() wastes resources. Patch by Goba.Dries Buytaert2004-01-11
|
* - Patch 4916: improved preparation of $node->teaser and $node->body. Patch byDries Buytaert2004-01-02
| | | | Goba.
* - Updated the calls to menu() to use MENU_HIDE instead of 1Dries Buytaert2003-12-17
|
* - Introduced a drupal_set_message() and drupal_get_message() function.Dries Buytaert2003-12-01
| | | | | | | Contributed themes and modules need to be updated: - modules: status() is no more; use drupal_set_message() instead. - themes: use drupal_get_message() to check for status messages and visualize them.
* - Committed phase 4 of JonBob's menu system changes.Dries Buytaert2003-11-25
|
* - Performance improvement: avoid copying/cloning arrays. Patch #155 by anarcat.Dries Buytaert2003-11-23
|
* - Committed phase 3 of JonBob's menu changes. Adds an API for modules toDries Buytaert2003-11-23
| | | | | define titles and breadcrumbs for their pages, and updates the theme system to display them.
* - Patch by JonBob:Dries Buytaert2003-11-20
| | | | | | | | Phase 2 of the menu system integration project. This unifies the interface used by admin and non-admin pages, and deprecates the _page hook in favor of explicit callbacks from menu(). Breadcrumbs, titles, and help text go away as a result of this patch; they will return in the phase 3 patch, printed by the theme.
* - table(...) -> theme("table", ...)Dries Buytaert2003-11-13
|
* - Committed stage 2 of the theme system improvements! Patch by CodeMonkeyX.Dries Buytaert2003-11-09
|
* - Committed stage 1 of the menu callbacks improvements. Patch by Jonathan.Dries Buytaert2003-11-08
|
* - Usability improvement: replaced many selection boxes by radio buttons.Dries Buytaert2003-11-07
| | | | Patch by Stefan.
* - Bugfix: fixed typo in cloud module. Patch by Marky.Dries Buytaert2003-11-03
| | | | - Bugfix: fixed menu glitch in book module. Patch by Kjartan.
* - Bugfix: fixed problem with book outlines. Reported by Mark Cheverton.Dries Buytaert2003-10-23
|
* - Bugfix: fixed book module links. Fixed bug #3621. Patch #132 by eafarris.Dries Buytaert2003-10-21
|
* - Fixed prefix problem with the book module. Patch by Moshe.Dries Buytaert2003-10-13
| | | | | | | | | | | | | | - Usability improvements to the user module: removed some redundant menu items by taking advantage of the column sorting, added status messages and so on. Patch by Moshe plus some fixes. - Made the profile module use the table() function. Patch by Moshe. - Fixed breadcrumb spacing. Patch by Moshe. - Fixed colspan problem with node overview table. Patch by Stefan. - Fixed inconsistency with table sorting. Patch 0122 by Al.
* - Fixed some link titles that were no longer correct due to the menuDries Buytaert2003-10-09
| | | | | | changes. - Fixed some broken links.
* - Committed part 3 of Michael's help system improvements: removed the $helpDries Buytaert2003-10-09
| | | | parameter from the menu() function.
* - Help system improvements: eliminated the _system hook. Patch by Michael.Dries Buytaert2003-10-07
| | | | | | - Bloggerapi module fixes. Patch by Kjartan. - Coding style fixes. Patch by Michael.
* - Fixed book preview problem. Patch by Kjartan.Dries Buytaert2003-10-06
|