Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
do I have to have these??? (functions)
  • Posted: 24.02.2005, 19:53
     
    sunadmn
    rank:
    Helper 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
  • Posted: 24.02.2005, 19:57
     
    jediping
    rank:
    Helper 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. :)
  • Posted: 24.02.2005, 20:03
     
    sunadmn
    rank:
    Helper Helper
    registered:
     October 2004
    Status:
    offline
    last visit:
    01.03.06
    Posts:
    437
    Groovy jedi that's what I thought but wanted to make sure before I messed things up.



    Thanks
    -SUNADMN
  • Posted: 24.02.2005, 20:28
     
    mhalbrook
    rank:
    Legend Legend
    registered:
     December 1969
    Status:
    online
    Posts:
    6534
    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.
  • Posted: 24.02.2005, 21:06
     
    rank:
    Moderator 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
  • Posted: 25.02.2005, 00:46
     
    sunadmn
    rank:
    Helper Helper
    registered:
     October 2004
    Status:
    offline
    last visit:
    01.03.06
    Posts:
    437
    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

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula