Upgrade module to 5.0/HEAD
kkaefer - January 5, 2007 - 15:01
| Project: | Comment Mail |
| Version: | HEAD |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
The attached patch cleans up the module and updates it to work with current HEAD (Drupal 5).
| Attachment | Size |
|---|---|
| drupal-5_0.patch | 19.76 KB |

#1
Patch needs to change date_update_1() to commentmail_update_1().
Otherwise, look good.
#2
dprint_r($comment_obj); also needs to be removed.
#3
Here is a patch that removes the above two comments.
#4
didn't work.
upon visiting the settings page, i got ..
warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'commentmail_admin_settings' was given in /Library/WebServer/Documents/drupal/includes/form.inc on line 218.and
in trying to post i got
Fatal error: Call to undefined function: user_mail() in /Library/WebServer/Documents/drupal/modules/commentmail/commentmail.module on line 55#5
actually it may be that the second patch is malformed... trying to decode it by hand...
#6
i wish i could edit the previous posts, but since i can't...
i have commentmail working, but don't use the second patch. it does not contain the patch for the .install file, which is what gave me the errors.
it also doesn't touch the dprint () which leads to a quick death.
manually changing the two comments did work.
#7
Here is another patch. It removes the dprint, corrects the name of the function in the .install file, has a .info file, and should work well.
#8
Here is a better patch:
- Version number added to the .info file.
- Description added to the settings.
Marking as RTBC.
#9
I can confirm that the latest patch in #8 works well on a live site.
#10
Committed to HEAD.
#11
Thanks Konstantin.
Do you plan to branch it and release it for 5.x soon?
#12
I decided that as long as this module is adapted to a post-5 version, I keep developing it in HEAD. Once it's ported to 6.x(-dev), I'll branch it. Please test the HEAD version. If no errors occur, I'll release a 5.x-1.0 in the next couple of days.
#13
OK, I switched the 3 sites to the official HEAD from the repository.
One more thing: add this line in the .info file:
version = "$Name: $"
#14
AFAIK, the release system automatically adds this line when a user downloads a tarball from the website. Power users using CVS checkouts can figure out the version from the Id string.
#15
It says here: http://drupal.org/node/101009
So it is better to include it.
#16