summaryrefslogtreecommitdiff
path: root/modules/node/node.module
Commit message (Collapse)AuthorAge
* - #10342: PHP5 fix with undefined array.Steven Wittens2004-08-25
|
* - Fixing bug with PHP5 patch.Steven Wittens2004-08-23
|
* - #9292: Make Drupal (somewhat) PHP5 compatible. xtemplate is still horribly ↵Steven Wittens2004-08-22
| | | | broken.
* - Patch #10187 by JonBob: bugfix: added missing permission check.Dries Buytaert2004-08-21
|
* - 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).
* - Code improvements by Stefan: made all status messages consistent (and ↵Dries Buytaert2004-08-18
| | | | easier to translate).
* - The upload (filehandler) module has landed!Dries Buytaert2004-08-17
|
* - Patch #10110 by JonBob: code improvement: looks like we have an artifact ↵Dries Buytaert2004-08-16
| | | | from before clean URLs in node.module. This patch removes the global variable $mod, which is no longer set and not necessary here anyway.
* - Patch #9983 by Stefan: usability improvement: made sure all status ↵Dries Buytaert2004-08-16
| | | | messages start with a capital letter.
* - Patch #10102 by Gerhard: removing some cruft from the node module!Dries Buytaert2004-08-16
|
* #6732: fixing bug 'once anonymous always anoymous' (nodes).Steven Wittens2004-08-14
|
* #10033: by Jonbob, make sure no filter check is done until the first preview.Steven Wittens2004-08-13
|
* Moving all legacy handlers into legacy.module.Steven Wittens2004-08-12
|
* - Patch #9972 by njivy: modified node_feed() for the instances where locale ↵Dries Buytaert2004-08-12
| | | | is not enabled. Without this patch, reset(array_keys($languages['name'])) throws an error.
* - New locale module thanks to Gerhard, Goba, Marco, Kristjan and others.Dries Buytaert2004-08-11
| | | | | | The new locale module provides every functionality on the web interface, so you don't need to edit the configuration files or add columns, when you add a new language. This module is an integration of the old locale and localegettext modules, plus a bunch of logic to parse Gettext Portable Object files (opposed to Machine Object files, as supported by localegettext). Note: I made some minor changes to the context-sensitive help texts and to some of the status messages.
* 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.
* - Patch #9812 by Adrian: fixed some PostgreSQL/ANSI SQL compabitibilityDries Buytaert2004-08-06
| | | | problems created by the new comment and node access permissions code.
* - Patch #9794 by JonBob: a bug introduced late in the review process makes ↵Dries Buytaert2004-08-05
| | | | individual node views inaccessible to users who should have permission. This does not affect node listings, so was missed.
* - 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 #9497 by gordon: made <!--break--> work even when the teaser lengthDries Buytaert2004-08-04
| | | | is set to unlimited and fixed up some code comments.
* - Patch #7336 by TDobes: in various parts of Drupal, we use the title ↵Dries Buytaert2004-08-03
| | | | attribute for links to provide a slightly more detailed explanation as to the purpose of a link or where it goes.
* - 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 #8942 by Morbus: when testing under devel.module, the "SELECT ↵Dries Buytaert2004-07-13
| | | | timestamp from {history}" SQL statement is executed multiple times in two different functions. This duplicated code should be placed in a function, and that's been done already with node_last_visited() - the remaining code was just never updated to use the new routine. This patch changes the old code to use node_last_visited, and also modifies node_last_visited() to cache the result of the database call.
* - More tab-improvements by JonBob: improved support for the default tabs!Dries Buytaert2004-07-10
|
* - 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!
* - Added revisions tab to node view (when needed)Steven Wittens2004-07-04
| | | | - Updated node.module to use drupal_goto after submission: this allows people to refresh after submission without any problems.
* - 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').
* - Made it possible to edit blog posts and made the blog module use tabs.Dries Buytaert2004-07-04
|
* - Patch #8973 by JonBob: Drupal contains many undefined variables and array ↵Dries Buytaert2004-07-02
| | | | indices, which makes PHP throw a lot of warnings when the reporting level is set to E_ALL. Things run fine with these warnings, but as a matter of code style if nothing else we should probably strive to avoid them. The attached fixes most of the more egregious offenders (about 95% of the warnings when I load /node on my test site).
* - Patch #8747 by JonBob: extended and standardized node.module DoxygenDries Buytaert2004-06-22
| | | | comments, and made formatting and quote usage more consistent.
* - Patch #8670 by asimmonds: more spelling fixes.Dries Buytaert2004-06-21
|
* - Patch #8713 by stefan: changed some 'node's to 'post's. Usability ↵Dries Buytaert2004-06-21
| | | | improvement.
* - Patch #8681 by stefan: fixed some broken URLs and help texts.Dries Buytaert2004-06-20
|
* - Patch #8679 by asimmonds: fixed spelling mistakes.Dries Buytaert2004-06-20
|
* - Patch #7696 by TDobes: renamed 'static' to 'sticky' which is a moreDries Buytaert2004-06-19
| | | | logical name. Requires a database upgrade.
* - Patch #8619 by TDobes: fixed typo in watchdog message.Dries Buytaert2004-06-19
|
* 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').
* - Partial patch #8284 by jseng: made the RSS auto-discovery URL absolute ↵Dries Buytaert2004-06-17
| | | | even though that is not strictly necessary.
* Quick improvement to autoteaser generation:Steven Wittens2004-06-10
| | | | added double-width dot and comma, and right-to-left question mark as sentence boundaries.
* - Patch #4950 by Stefan (and Morbus): made watchdog messages translatable.Dries Buytaert2004-06-02
|
* - Patch #7096 by bylund: fixed a bug with the node filters at the node ↵Dries Buytaert2004-05-03
| | | | administration page (administration > content)
* - Patch #6612 by JonBob: extended the node API with new hooks.Dries Buytaert2004-04-28
|
* - Patch #6444 by Junyor: allow modules to change the 'changed' timestamp of ↵Dries Buytaert2004-04-24
| | | | nodes.
* - 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 by JonBob/Jonathan: reworked the menu system so that menus areDries Buytaert2004-04-15
| | | | | | | | | | | | configurable! Menu items can be disabled, repositioned, added and so on. Upgrading to requires you to run update.php. This functionality depricates some of the 'navigation modules' in the contributions repository. Furthermore, modules can now 'suggest' menu items and site adminstrators can choose to enable them. Modules in the contributions repository should try to take advantage of this.
* Truncate UTF-8 patch. Introduced a new function truncate_utf8() for chopping ↵Steven Wittens2004-04-15
| | | | off strings at unsure locations, without risking incomplete UTF-8 data.
* Missing semi-colon for HTML entity.Steven Wittens2004-04-05
|
* Patch #5588 by bylund: XHTML improvements: <i> -> <em> and <b> -> <strong>.Dries Buytaert2004-03-20
|