summaryrefslogtreecommitdiff
path: root/modules/book.module
Commit message (Collapse)AuthorAge
* - Patch #15948 by matteo: the book module should call the nodeapi hook when ↵Dries Buytaert2005-01-23
| | | | printing printer-friendly pages.
* - Patch #15843 by Ber: in book-pages node forms we use a delta of fifteen ↵Dries Buytaert2005-01-19
| | | | (-15 to +15) but in the book-outline admin we dont dewfine this, resulting in a default delta of ten. This should be consistent and thus both 15.
* - The real code fixes ;)Steven Wittens2005-01-17
|
* - Patch #14731 by chx: made it possible to rewrite node queries.Dries Buytaert2005-01-16
|
* - Patch #13260 by UnConeD: watchdog module improvements.Dries Buytaert2005-01-09
| | | | | | | | | | We added a 'severity' column to watchdog(): watchdog($type, $message, $link) --> watchdog($type, $message, $severity, $link); * Specify a severity in case you are reporting a warning or error. * The $link-parameter is now the fourth parameter instead of the third. TODO: document this in the upgrade guide.
* - Patch #12366 by mathias: fixed missing book edit tab.Dries Buytaert2004-12-22
|
* - Bugfix: the book module incorrectly assumed that there is an active ↵Dries Buytaert2004-12-18
| | | | revision if n.moderate = 0. We can (and need) to rewrite this when the revision changes hit core. In essence, we need an efficient query to retrieve the 'last puslished revision that is not in the moderation queue'.
* - Patch #13907 by Neil: less ways to set the page title.Dries Buytaert2004-12-15
| | | | | | | * Less logic in theme code. * Encourages use of the menu system. * Easier to find where a title or breadcrumb comes from in other people's code because there are less places to look. Look in menu and then grep for the appropriate set function. Looking for calls to theme_page() is hard because there are too many of them. * Very slightly more efficient.
* - Removed some cruft: left-over xxx_help_page() functions.Dries Buytaert2004-12-11
|
* - Patch #13443 by Moshe: got rid of the semi-implemented 'page link' ↵Dries Buytaert2004-11-24
| | | | feature. All themes currently support primary and secondary links so page links are now deprecated. Check your contributed modules and update them accordingly.
* - Patch by Stefan: wrapped the help texts in <p></p> tags. Helps improve ↵Dries Buytaert2004-11-23
| | | | consistency.
* - Patch 13180 by chx: renamed check_query() to db_escape_string() and ↵Dries Buytaert2004-11-21
| | | | | | implemtented it properly per database backend. Read the manual for pg_escape_string: "Use of this function is recommended instead of addslashes()." Or read sqlite_escape_string: "addslashes() should NOT be used to quote your strings for SQLite queries; it will lead to strange results when retrieving your data."
* - Modified patch #8552 by Gerhard: added 'add child page' link to book pages ↵Dries Buytaert2004-11-15
| | | | you can edit.
* - Patch #12783 by Stefan: various small consistency/usability improvements.Dries Buytaert2004-11-15
|
* - Patch #10632 by Gerhard: the book permissions in today's cvs are not ↵Dries Buytaert2004-11-04
| | | | consistent with the rest of Drupal. We have a "maintain books" and a "edit own book pages" permission. All other modules have a "create foo" permission. Thus the existing "maintain books" permission should be renamed to "create book pages" and a new "maintain books" permission should be introduced that allows editors to update book pages they haven't created themselves even without having "administer nodes" permission.
* - Patch #11875 by Neil Drumm: block module configuration improvements.Dries Buytaert2004-10-31
| | | | | | | | | | The primary goal of this patch is to take the 'custom' and 'path' columns of the block overview page and make them into something understandable. As of Drupal 4.5 'custom' lacked an explanation which wasn't buried in help text and path required dealing with regular expressions. Every block now has a configuration page to control these options. This gives more space to make form controls which do not require a lengthy explanation. This page also gives modules a chance to put their block configuration options in a place that makes sense using new operations in the block hook. The only required changes to modules implementing hook_block() is to be careful about what is returned. Do not return anything if $op is not 'list' or 'view'. Once this change is made, modules will still be compatible with Drupal 4.5. Required changes to core modules are included in this path. An additional optional change to modules is to implement the additional $op options added. 'configure' should return a string containing the configuration form for the block with the appropriate $delta. 'configure save' will come with an additional $edit argument, which will contain the submitted form data for saving. These changes to core modules are also included in this patch.
* - Patch #11879 by Moshe: deprecated the _content hook.Dries Buytaert2004-10-23
| | | | | | TODO: + Update Doxygen hook list (if required). + Document this in the developer's upgrade section.
* - Patch #11947 by puregin: ensured that a book node's weight is captured ↵Dries Buytaert2004-10-23
| | | | | | when the book node lists returned by book_location() and book_location_down() are generated. This information is required when selecting next page candidates in book_next(). Note that book_location_down() was missing an explicit field b.weight in the SQL SELECT statement, but this value would usually be supplied implicitly because it is used to ORDER the result.
* - Patch #11728 by Uwe Hermann: fixed some typos in the code comments, ↵Dries Buytaert2004-10-19
| | | | | | Doxygen documentation and screen output. Uwe: I dropped the 'iff' chunks as 'iff' stands for 'if and only if'.
* - Mofified patch #8862 by puregin: improved book module documentation.Dries Buytaert2004-10-15
|
* - Fixed bug #11312: menu caching to aggresively. I did not apply the proposedDries Buytaert2004-10-14
| | | | | patch but moved the menu-logic to the $may_cache clause and added some checks to avoid SQL overhead. I think this is the most performant solution.
* fixing typoes.Steven Wittens2004-10-14
|
* - Code improvement: removed some redundant code from the book module.Dries Buytaert2004-10-10
|
* - Patch #11401 by Goba: documentation updates:Dries Buytaert2004-10-09
| | | | | | + Made error strings in blog.module consistent. + Explained a bit better what the RSD setting is for in the blog module. + Removed the notes about PHP content from block module and book module, since everything is handled via the input formats now.
* - Reintroduced the book outline feature: non-book pages now have an ↵Dries Buytaert2004-10-08
| | | | outline-tab on their node page, given you have permission to maintain books. Using the outline-tab, nodes can be added to a book's hierarchy. Also added some context sensitive help and fixed some quotes.
* - Fixed SQL query in book module. Patch by killes.Dries Buytaert2004-09-29
|
* - Patch #10977 by killes: review node access checks in book module.Dries Buytaert2004-09-29
|
* Modified version of #10230: Put placement of filter format selector in a ↵Steven Wittens2004-09-28
| | | | module's hands, and move it below the relevant textarea.
* - Modified patch #10904 by JonathanS: fixed book teasers not being ↵Dries Buytaert2004-09-24
| | | | check_output'ed.
* - Patch #8179 by JonBob: reintroduced menu caching.Dries Buytaert2004-09-16
|
* - Patch #10622 by Adrian: fixes various PostgreSQL related problems.Dries Buytaert2004-09-08
| | | | | | | | | | | | | 1) Menu problems with Postgres (this is a highly critical 1 line fix) 2) Archive module fails with Postgres 3) Postgres setup problems - changes to database.pgsql (although i made these changes myself before finding this patch) 4) Book module fails with Postgres 5) Postgres problems following creation of a new type of user - which is actually about a taxonomy.module bug. 6) Creating accregator_item_table in PostgreSQL 7) Postgres - Polls not displayed on Poll Page 8) Blog module has sql errors with postgres This should not affect MySQL users (hopefully).
* - Patch #6464 by TDobes: don't enforce book revision -- rely on the default ↵Dries Buytaert2004-09-07
| | | | setting.
* Book.module: <top-level> item didn't show up in parent selector.Steven Wittens2004-08-24
|
* - Patch #9942 by JonBob: fixed a typo: 'form' -> 'from'.Dries Buytaert2004-08-21
|
* - Patch #10084: added 'edit own book page' permission: this makes the bookDries Buytaert2004-08-21
| | | | module consistent with the other node modules.
* - Patch by JonBob: for consistency and readability, add brief descriptions ↵Dries Buytaert2004-08-21
| | | | of each source file inside the @file comment block at the head of the file. This helps with Doxygen indexing, and also allows neophytes to see what a file does immediately on opening the source, regardless of the organization of the hooks.
* - Code improvements by Stefan: use capital letters for header titles (and ↵Dries Buytaert2004-08-19
| | | | added some missing t() functions).
* - Bugfix, spotted by Gerhard: editing a book page did not update the author.Dries Buytaert2004-08-18
|
* - Code improvements by Stefan: made all status messages consistent (and ↵Dries Buytaert2004-08-18
| | | | easier to translate).
* - Patch #9983 by Stefan: usability improvement: made sure all status ↵Dries Buytaert2004-08-16
| | | | messages start with a capital letter.
* - Patch #10103 by Gerhard: book module cleanup.Dries Buytaert2004-08-16
|
* The Input formats - filter patch has landed. I still need to make update ↵Steven Wittens2004-08-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instructions for modules and update the hook docs. Here's an overview of the changes: 1) Multiple Input formats: they are complete filter configurations (what filters to use, in what order and with which settings). Input formats are admin-definable, and usage of them is role-dependant. For example, you can set it up so that regular users can only use limited HTML, while admins can free HTML without any tag limitations. The input format can be chosen per content item (nodes, comments, blocks, ...) when you add/edit them. If only a single format is available, there is no choice, and nothing changes with before. The default install (and the upgrade) contains a basic set of formats which should satisfy the average user's needs. 2) Filters have toggles Because now you might want to enable a filter only on some input formats, an explicit toggle is provided by the filter system. Modules do not need to worry about it and filters that still have their own on/off switch should get rid of it. 3) Multiple filters per module This was necessary to accomodate the next change, and it's also a logical extension of the filter system. 4) Embedded PHP is now a filter Thanks to the multiple input formats, I was able to move the 'embedded PHP' feature from block.module, page.module and book.module into a simple filter which executes PHP code. This filter is part of filter.module, and by default there is an input format 'PHP', restricted to the administrator only, which contains this filter. This change means that block.module now passes custom block contents through the filter system. As well as from reducing code duplication and avoiding two type selectors for page/book nodes, you can now combine PHP code with other filters. 5) User-supplied PHP code now requires <?php ?> tags. This is required for teasers to work with PHP code. Because PHP evaluation is now just another step in the filter process, we can't do this. Also, because teasers are generated before filtering, this would result in errors when the teaser generation would cut off a piece of PHP code. Also, regular PHP syntax explicitly includes the <?php ?> tags for PHP files, so it makes sense to use the same convention for embedded PHP in Drupal. 6) Filter caching was added. Benchmarking shows that even for a simple setup (basic html filtering + legacy URL rewriting), filtercache can offer speedups. Unlike the old filtercache, this uses the normal cache table. 7) Filtertips were moved from help into a hook_filter_tips(). This was required to accomodate the fact that there are multiple filters per module, and that filter settings are format dependant. Shoehorning filter tips into _help was ugly and silly. The display of the filter tips is done through the input format selector, so filter_tips_short() no longer exists. 8) A more intelligent linebreak convertor was added, which doesn't stop working if you use block-level tags and which adds <p> tags.
* Getting rid of parameters which were never passed.Steven Wittens2004-08-10
|
* - Left-over debug statementSteven Wittens2004-08-10
|
* - #4266: When editing a book page, hide the page and its children from the ↵Steven Wittens2004-08-10
| | | | "Parent" selector to prevent circular relationships in the book hierarchy.
* - Patch #9775 by TDobes: consistency operation. Changed to "edit foo," ↵Dries Buytaert2004-08-05
| | | | "delete foo," and "view foo" links into simply "edit," "delete," and "view".
* - 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
|