Quick Checkout Module Questions

Discussion in 'TemplateCodes' started by Rodney, Aug 1, 2012.

  1. Rodney New Member

    First off, excellent plugin and we've had a lot of good success with it so far. I guess this this question is more out of curiosity and "thick headedness" today, but here goes anyway. Could you give me an idea as to what the following two lines mean. I've read the comments in the code but its just not sinking in today for some reason. For the administration section, does this mean that the plugin can be used to replace the admin "add listing" option, or am I just way, way off base?

    --
    Code:
    /**
    * Administration Capablities
    *
    * Determines if the module has an admin interface or works within the
    * administration directory. 0 = false, 1 = true
    */
    $data['module']['admin_capable'] = "0";
     
    /**
    * Front-end Capablities
    *
    * Determines if the module has a front-end interface or works within the
    * front-ent directory. 0 = false, 1 = true
    */
    $data['module']['user_capable'] = "0";
    
  2. Mike-N-Tosh Owner

    I moved this post to the appropriate third party developer's forum, Templatecodes.

    To answer your question, you are way off base. Although you didn't post this, this code comes from the config.php file which is required for all modules to work. The config file is what tells the core what the main capabilities of the module are. You can read more about this and other information regarding building your own modules in the online documentation.

Share This Page