Support from Acquia helps fund testing for Drupal Acquia logo

Comments

markus_petrux’s picture

Status: Active » Needs review
FileSize
4.02 KB

Here's a patch against current dev snapshot.

markus_petrux’s picture

Opps! Minor typo in submit handler comments.

sun’s picture

Status: Needs review » Needs work

Oww... too bad I recognize this patch too late. Due to #321216: Move wysiwyg_editor into wysiwyg module, this needs a re-roll now.

markus_petrux’s picture

Status: Needs work » Needs review
FileSize
4.22 KB

Ok, patch re-rolled for current dev snapshot of wysiwyg module.

In addition to adding a confirmation form (done in porevious patch), I've moved the Edit/Delete links into separate table columns (path.module also does it this way).

sun’s picture

Status: Needs review » Needs work

Nice. Two minor issues:

- %name placeholder in the confirm form should not be surrounded by strong tags. This is what theme_placeholder(), resp. %token, is for.

- Instead of $arg[4] != 'delete' we want to test for !$arg[4], because this help message should only appear on the overview page.

Additionally, I'm unsure whether we really need that destination-cruft in there. So better rip it for now, since we always want to redirect to the profile overview page after deleting a profile.

markus_petrux’s picture

Ok, I'll re-roll it now. Just one question/suggestion...

Instead of $arg[4] != 'delete' we want to test for !$arg[4], because this help message should only appear on the overview page.

hmm... what if I check for empty($arg[4])? (no type conversion from string to bool).

The rest is done, ready to be attached here, just waiting for confirmation on this check above. :)

markus_petrux’s picture

Well, here's the patch. In regards to the above question... In the meantime, I opted for checking for empty($arg[4]). Please, let me know if you prefer as you suggested before. ;)

markus_petrux’s picture

Status: Needs work » Needs review

:P

sun’s picture

Status: Needs review » Needs work

empty() is even better, since I do not know (yet) whether $arg is equal to arg() (which returns empty strings for undefined args) ;)

Unfortunately, there is still some destination-cruft in confirm_form() left...

markus_petrux’s picture

I guess the $arg stuff is just a convention, so arg() is invoked just once and it's easier to check for empty() too.

Patch re-rolled.

markus_petrux’s picture

Status: Needs work » Needs review
sun’s picture

Status: Needs review » Fixed
FileSize
4.46 KB
4.42 KB

Hint: Please always roll patches from the root folder of a given module, i.e. the root folder of Drupal core for Drupal core patches, and the root folder of a contrib module for contrib module patches. Also, you do not have to rename .patch files to .txt on drupal.org.

Thanks, works, changed some comments, re-rolled, back-ported, committed!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.