There are a lot of cleanups to do in contact.module to help bring this up to documentation and conding standards.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Status: Active » Needs review
Issue tags: +API change
FileSize
19.02 KB

Just a few things so far...so much to clean up.
- Renames vague functions like contact_admin_categories() and contact_admin_edit() to contact_category_list() and contact_category_edit_form(). Much easier to tell what each function does.
- Simplified the logic in contact_category_edit_form().
- Cleans up contact_load() for simpler code.
- Cleans up message variables in contact_mail().

Status: Needs review » Needs work

The last submitted patch failed testing.

Dave Reid’s picture

Status: Needs work » Needs review
FileSize
24.76 KB
Dave Reid’s picture

Thank god for simpletest. Patch with 100% less stupid mistakes.

Status: Needs review » Needs work

The last submitted patch failed testing.

Dave Reid’s picture

Status: Needs work » Needs review
FileSize
28.3 KB

ARG. Wrong patch.

Dave Reid’s picture

Fixed a few spelling errors.

Dries’s picture

+++ modules/contact/contact.admin.inc	8 Oct 2009 16:04:08 -0000
@@ -9,28 +9,35 @@
+  // If no categories were found, add a link to create a new category.

No link is added so the comments looks incorrect.

Otherwise this looks like a nice clean-up.

Dave Reid’s picture

Re-rolled for recent commits and removed that comment.

Dries’s picture

Status: Needs review » Fixed

Committed. Thanks for the reroll.

Status: Fixed » Closed (fixed)
Issue tags: -API change

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