Hello, is it possible to edit the expiry date and maximum uses of a code after the code is already created?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | regcode-edit_maxuses_and_expiry_date-1502864-3.patch | 6.41 KB | progpapa |
Hello, is it possible to edit the expiry date and maximum uses of a code after the code is already created?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | regcode-edit_maxuses_and_expiry_date-1502864-3.patch | 6.41 KB | progpapa |
Comments
Comment #1
scristian commentedI did a custom action for this to be used on views_bulk_operations. This change only expiration date, but can be easily changed to change maximum uses.
Also, it uses Date module.
Comment #2
schiavone commentedHas anyone tried this with 7.x? If not I might be able to get this into a patch.
Comment #3
progpapa commentedThe code in #1 requires only smaller changes to work with D7.
I've turned this into a patch for the regcode module, removed the Date module dependency and added an action for changing max uses.
(If you've overridden the view at admin/structure/views/view/regcode, you'll need to add the two new VBO actions manually, otherwise they should show up after a cache clear.)