Closed (fixed)
Project:
User Points
Version:
7.x-2.x-dev
Component:
Code: userpoints
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2012 at 21:28 UTC
Updated:
9 Mar 2012 at 21:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
berdirA first patch.
Not perfect yet, but brings us closer back to how other contrib modules work and also Drupal 8 will.
Additional things to be done here will include relying on the metadata controller for the properties, views controller for the views integration, at least for transactions. Also ui controller for the bundle administration.
Comment #2
berdirComment #4
berdirOk, moved the properties definition to the controller and fixed up the rules tests and dropped the after hook that one is gone for good :) (Aka, has been replaced by the default update/insert hooks).
Comment #5
berdirAnd now a patch which also adds the views controller. Not perfect yet but a basic view can be built including support for VBO.
Category is for example just the id, but that's not really relevant as that will be replaced by an actual bundle anyway.
Another ~200 lines of code saved :)
Comment #7
berdirOh well, looks like the defaultUri() cleanup conflicts with the current category filtering, so this will have to wait until that has been replaced by view or otherwise removed :)
Comment #8
berdirCommited this. This isn't really finished and there will be some loose ends like the views integration but this commited allows to continue in different issues and get them back on track like the field one.