Comments

deekayen’s picture

Status: Needs work » Needs review
StatusFileSize
new10.62 KB

This should finish it out. I couldn't help but add some other code cleanup as part of this patch. In addition to code style is a change to the permissions on hook_menu() since they seemed inconsistent. Otherwise, this patch adds a checkbox to the configuration form of each custom redirect that unsets the messages set during the page request of the submission.

deekayen’s picture

Version: 6.x-1.x-dev » 6.x-1.4
StatusFileSize
new13.76 KB

Previous patch was against DRUPAL-6--1, which is apparently no longer where the rest of the 6.x updates were going, so this is against DRUPAL-6--1-4, which right now is also HEAD. It also includes simpletests and a bugfix for sending the wrong array key to menu_valid_path().

deekayen’s picture

Spelling fix in @file block of .test and a screenshot of the tests passing.

Edit form screenshot

Destination list screenshot

deekayen’s picture

Status: Needs review » Needs work
deekayen’s picture

Status: Needs work » Needs review
StatusFileSize
new15.82 KB

Apparently the previous patch wasn't working in all cases. The broken case I was shown had a CCK content node submission that redirected correctly to another node, but the message about the node creation was not unset.

This patch adds an implementation of hook_enable to force the module weight to be + 1 more than any other module. It also adds a $_SESSION variable to track across to the next page load to let a new hook_boot implementation also attempt to unset any messages since hook_exit apparently wasn't catching everything. I left the hook_exit in place, figuring it wasn't hurting anything.

I was never able to reproduce the case provided in the previous, offline patch review, but I'm hopeful that now I'm at least somewhere in the arena of overkill.

denes.szabo’s picture

Sorry deekayen, but as I know we does not translate the schema api: http://drupal.org/node/332123

So, your patch should not contain t() around field descriptions.

deekayen’s picture

StatusFileSize
new15.61 KB

Easily resolved...