Closed (fixed)
Project:
Copyright
Version:
5.x-1.1
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2007 at 02:27 UTC
Updated:
26 Jun 2007 at 12:18 UTC
Jump to comment: Most recent file
Comments
Comment #1
lanny heidbreder commentedPatch attached.
All the new functions are at the bottom of the file for easy reference. I don't know if this is bad etiquette or not; correct me if it is.
I may not have abstracted out the database-writing functions enough; I know for a fact it's not consistent with the current private DB-writing functions, but I wasn't sure it needed to be in this case.
I eagerly await input and correction on anything I've done wrong.
DISCLAIMER
This is my first Drupal patch, as well as my first real contribution to any stable base of code in any language.
This patch may not work. This patch may melt your hard drive. This patch may rape your wife and enslave your children.
I'm a newbie. You have been warned.
Comment #2
lanny heidbreder commentedPatch actually attached this time. >.<
Comment #3
lanny heidbreder commentedAnd I forgot, this requires a new database table called {copyright_user} with two columns: uid (int(10), primary key) and cpyid (int(10)).
Will work on patching copyright.install.
Comment #4
Robrecht Jacques commentedI will test the patch later today. Some observations:
$op = 'delete'forhook_user(): remove the row for that user,use
$defaultto$site_defaultso it is clearly different from$user_default. At one point someone may add$type_default. Renaming the variable$defaultmay make it more clear what default we are talking about later on,if ($user_default > 0)instead ofif ($user_default). Or useif (isset($user_default),thingy above your set of functions.
The rest looks fine (but I haven't tested it). Implement a patch for
copyright.install, which should implementcopyright_update_5()which creates the new table (next to creating the table incopyright_install().Thanks a lot!
Comment #5
lanny heidbreder commentedhehh, I feel stupid about that
implode()thing. I knew the function existed, but couldn't think of the name. <.<;;Thanks for the help. I should get to this tonight or tomorrow. Should I submit a patch to my patch, or a patch to the original file pre-patch?
Comment #6
Robrecht Jacques commentedNo problem.
The patch should be against the original file, not to an already patched file.
Oh, by the way: is this for Drupal 4.7.x or 5.x ? Please indicate it when you follow up on this issue with your new patch.
Comment #7
toemaz commentedFor what it's worth: I'm in favour of this feature.
Comment #8
ksoonson commentedhehe... I also love this feature very much... :-)
Comment #9
Robrecht Jacques commented75th trombone: any update on this? Basically the patch was ok, just some minor cleanups. Attach a new patch so I can easiliy commit it.
Thanks!
Comment #10
Robrecht Jacques commentedFiex in 5.x-1.x-dev. Will be included in the next release of copyright module (5.x-1.1).
Comment #11
ksoonson commentedYeah! Great news~
Comment #12
ksoonson commentedwhen will the new version be released so that people can try / use?
will it be okay for using CVS version?
I am anxious to see the new version with this feature~~
Comment #13
Robrecht Jacques commentedNew version has been released: 5.x-1.1. If there are any problems with it, create an new issue with some bug report. Thanks!
Comment #14
(not verified) commented