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
- Teb answered »PNphpBB2 and menu tree« 04. Jul
- marc@marcpare.com posted »Adding an "About Us" page« 04. Jul
- animateclay answered »SafeHTML output filter and youtube« 04. Jul
- videokid answered »caching« 04. Jul
- Wendell answered »pagesetter pdf output« 04. Jul
- Fredricn posted »Mediashare mysql instalation issue« 04. Jul
- slam answered »Theme by iThinkMedia.com footer - Beacon for Hackers?« 04. Jul
Login
do I have to have these??? (functions)
-
-
- Rank: Helper
- Registered: 15.11.04
- 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: Helper
- Registered: 07.10.04
- last visit: 27.06.09
- Posts: 436
Groovy jedi that's what I thought but wanted to make sure before I messed things up.
Thanks
-SUNADMN -
- Rank: Legend
- Registered: 31.12.69
- last visit: 30.06.09
- Posts: 6766
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: 19.03.02
- last visit: 27.06.09
- Posts: 7661
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
--
Visit My homepage and Zikula themes. -
- Rank: Helper
- Registered: 07.10.04
- last visit: 27.06.09
- Posts: 436
Great guys thanks so much for the answers I will keep to the naming conventions in my development for sure, it seems to help with confucion on what does what.
Thanks
-SUNADMN
- Moderated by :
- Support
