- Moderated by:
- Support
-
- rank:
-
Helper
- registered:
- October 2004
- Status:
- offline
- last visit:
- 01.03.06
- Posts:
- 437
Hey all I am working on a new module and I wanted to know if I really have to have the adminapi fucntions, the reason I ask is that the module will have no configuration and the administration will be handled on a user by user basis through the permissions system so do I have to have this is it maditory??
Thanks
-SUNADMN -
- rank:
-
Helper
- registered:
- November 2004
- Status:
- offline
- last visit:
- 12.03.07
- Posts:
- 387
Sounds to me like you don't need it. I have it so that I have the link in the admin menu, so that I can get to it there if I want to, and so that, if I add stuff later configuration-wise I can get to it. However, if you change the variable in the version file saying it's got an admin option, then you're fine, I would think. :) -
- rank:
-
Legend
- registered:
- December 1969
- Status:
- offline
- last visit:
- 04.12.08
- Posts:
- 6540
Worst case scenario is you have to go back in and write the admin stuff after the fact, not likely to hurt anything.. I do like jedi on PrayerPost, pretty much the only thing in the Admin functions is to let me see it. I think I ended up with the remove function being the only admin power. -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
For consistencies sake it may be worth keeping the modifyconfig/updateconfig functions. If your working from .750 example module then there's no point. But in the .760 version some new hook types have been added. These are modifyconfig/updateconfig hooks. These hooks allow additional options to be added to the modifyconfig page of a module by other modules.
Also where possible key the user API's consistently named; get to get an item, getall to get a set of items etc.
-Mark
