- 10 Aug, 2004 2 commits
-
-
Steven Wittens authored
-
Steven Wittens authored
- #4266: When editing a book page, hide the page and its children from the "Parent" selector to prevent circular relationships in the book hierarchy.
-
- 05 Aug, 2004 1 commit
-
- 31 Jul, 2004 2 commits
-
-
Dries authored
to set book breadcrumbs for nodes that weren't books.
-
- 30 Jul, 2004 1 commit
-
-
Dries authored
- Patch #5347 by JonBob: 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.
-
- 25 Jul, 2004 1 commit
-
-
Dries authored
-
- 13 Jul, 2004 1 commit
-
- 08 Jul, 2004 1 commit
-
-
Dries authored
- Marked required fields on the node (story, book, page, blog) and comment 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!
-
- 06 Jul, 2004 1 commit
-
- 04 Jul, 2004 1 commit
-
-
Dries authored
- Patch by Steven and me: refactored the form handling of nodes. The node 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').
-
- 21 Jun, 2004 2 commits
- 20 Jun, 2004 1 commit
-
-
Dries authored
-
- 18 Jun, 2004 1 commit
-
-
Dries authored
Tabs patch! 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').
-
- 03 Jun, 2004 1 commit
-
-
Kjartan authored
-
- 02 Jun, 2004 1 commit
-
-
Dries authored
-
- 17 May, 2004 1 commit
-
-
Dries authored
-
- 09 May, 2004 1 commit
-
-
Dries authored
-
- 24 Apr, 2004 1 commit
-
- 21 Apr, 2004 1 commit
-
-
Dries authored
- Added support for 403 handling. Patch by JonBob. As a side benefit, 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.
-
- 20 Mar, 2004 1 commit
-
-
Dries authored
-
- 15 Feb, 2004 1 commit
-
-
Dries authored
- Patch by Steven: removed redundant permission checks. These are no longer required thanks to the new 404 handling.
-
- 27 Jan, 2004 2 commits
- 23 Jan, 2004 1 commit
-
-
Dries authored
Patch 5287 by Stefan: multiline help texts should become inside a single $output.
-
- 17 Jan, 2004 2 commits
- 15 Jan, 2004 2 commits
- 14 Jan, 2004 2 commits
- 11 Jan, 2004 2 commits
-
-
Dries authored
-
- 02 Jan, 2004 1 commit
-
-
Dries authored
- Patch 4916: improved preparation of $node->teaser and $node->body. Patch by Goba.
-
- 17 Dec, 2003 1 commit
-
-
Dries authored
- Updated the calls to menu() to use MENU_HIDE instead of 1
-
- 01 Dec, 2003 1 commit
-
-
Dries authored
- Introduced a drupal_set_message() and drupal_get_message() function. 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.
-
- 25 Nov, 2003 1 commit
-
-
Dries authored
- Committed phase 4 of JonBob's menu system changes.
-
- 23 Nov, 2003 2 commits
-
-
Dries authored
- Committed phase 3 of JonBob's menu changes. Adds an API for modules to define titles and breadcrumbs for their pages, and updates the theme system to display them.