summaryrefslogtreecommitdiff
path: root/modules/poll.module
Commit message (Collapse)AuthorAge
* - 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.
* Removing dead code from poll.module.Steven Wittens2004-09-18
|
* - 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 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: 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 #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.
* - Moving the title.module from core to contrib as discussed on the mailing list.Dries Buytaert2004-07-07
|
* - Patch #9049 by JonBob: fixed a number of tab issues.Dries Buytaert2004-07-06
|
* Fixed broken poll results:Steven Wittens2004-07-04
| | | | | - If you are allowed to vote, results are now shown on a separate node tab "node/id/results". - Poll voting now submits to a separate URL and uses drupal_goto to go back to the poll node
* - 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 #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').
* - Patch #7577 by JonBob: code improvements to the book, forum, page and poll ↵Dries Buytaert2004-05-09
| | | | module.
* - 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.
* Poll.module / Statistics.module: fixing bug caused by using array_merge and ↵Steven Wittens2004-04-14
| | | | | | drupal_map_assoc. This causes array keys to be renumbered, leading to bugs. Remember to use $array1 + $array2 instead.
* - Patch by Gerhard: move the updates to database/updates.inc so packagingDries Buytaert2004-02-25
| | | | systems can by-pass update.php.
* Poll.module cleanup:Steven Wittens2004-02-24
| | | | | | | * Code cleaning: simpler structures, removed some old leftovers, ... * Clean URLs everywhere (the old mechanism was broken anyway). Had to get rid of 'inline voting' (i.e. voting with the sideblock and ending up on the same page), but that was a bit confusing anyway. * Simplified submission form with form_group and streamlined choice mechanism. * Improved bar rendering in pollresults for themes with avatars, like xtemplate.
* - Patch 5592 by Goba: let drupal_map_assoc() rule. :-)Dries Buytaert2004-02-15
| | | | - Renamed CHANGELOG to CHANGELOG.txt for Windows uses.
* - 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.
* - Patch #5021: clean up URLs in _help texts. Patch by UnConeD.Dries Buytaert2004-01-11
|
* - Patch 4948 by Goba: the poll module uses check_output() on the poll options.Dries Buytaert2004-01-04
|
* General filtering improvementsSteven Wittens2003-12-30
| | | | | | - Re-added STYLE/ON*= filtering (this got lost a while ago due to reorganisation) - Added form_group's to node.module's filter options - Fixed incorrect filter usage in poll.module
* - The introduction of the $page parameter for the node _view() hooks andDries Buytaert2003-12-22
| | | | | | | | the theme functions left the poll module's poll_view() function in a state where it does not display the poll results or vote forms on their own pages, since it uses another (proprietary) $block parameter to handle the case when the poll is rendered to be displayed in a block. Patch by Goba.
* - Updated the calls to menu() to use MENU_HIDE instead of 1Dries Buytaert2003-12-17
|
* - Committed phase 4 of JonBob's menu system changes.Dries Buytaert2003-11-25
|
* - 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.
* - 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.
* poll.module: Fixed invalid XHTML (Patch by Gabor Hojtsy)Steven Wittens2003-11-01
|
* - 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.
* - Small poll block improvement (without configuration option). Patch byDries Buytaert2003-10-06
| | | | Gabor.
* - Help improvements and translation improvements from Michael. Thanks!Dries Buytaert2003-10-03
|
* - Associate a callback with the menu links! (This callback is not yet beingDries Buytaert2003-09-28
| | | | | | | | | called but will be as soon the remaining links have been transformed to use the menu system.) - Made sure the menu does not render links with no callback and no children. Like this, the 'create content' link is not being shown when the user has no permission to add any content.
* - Committed Goba's translation fixes.Dries Buytaert2003-09-28
|
* - Committed Al's new admin link texts. Remarks:Dries Buytaert2003-09-27
| | | | | | | 1) As explained by Al, there is still a glitch with the 'create content' menu. 2) The user module part of the patch did not apply due to Kjartan's earlier patch.
* - Committed the admin menu integration patch. Thanks Adrian, Stefan and others.Dries Buytaert2003-09-26
|
* - Updated the poll module to use the _validate hook. Fixes bug #2918 reportedDries Buytaert2003-09-20
| | | | by Jonathan.
* - Committed Nick's _content improvements.Dries Buytaert2003-09-20
|
* - Fix for bug #2733: devision by zero. Patch by Jonathan.Dries Buytaert2003-09-18
|
* - Book module improvements. This commit changes the behavior of the "view"Dries Buytaert2003-09-15
| | | | | hook. See mailing list for details; search for a mail with the subject: '[IMPORTANT] behavior of "view" hook changed'. Modified patch from Nick.
* - Bugfix: made deleting polls work. Patch by Marco.Dries Buytaert2003-07-24
|
* - Performance improvement: changed a fair amount of "left joins" to "innerDries Buytaert2003-07-12
| | | | joins". Patch by Gerhard.
* - Committed a slightly modified version of Slavica's table prefix patch.Dries Buytaert2003-07-10
|