Installation, Configuration, & Upgrades  :: 
pn_state values
 Top

  • I've seen a lot of posts that talk about pn_state (from the modules table) values... many talking about changing the value to 3 to activate it... I know what the first few values are, but what about the rest... I've seen values of 1 through 5...and maybe there's more.

    By comparison of the DB to the admin mod-list, I come up with:

    1 = modules unitialized
    2 = module inactive
    3 = module active

    So what are 4 and 5 for? No need to re-explain if you know a link.

    Thanks.

    John
  • 4) "needs to be updated" and 5) "Missing".. I'm guessing..

    --
    http://www.invalidresponse.com
  • Thanks for taking a stab at it.

    --
    Photography | PHP | Other
  • The module states are documented at the top of pnAPI.php.

    Code

    /**
     * State of modules
     */

    define('_PNMODULE_STATE_UNINITIALISED', 1);
    define('_PNMODULE_STATE_INACTIVE', 2);
    define('_PNMODULE_STATE_ACTIVE', 3);
    define('_PNMODULE_STATE_MISSING', 4);
    define('_PNMODULE_STATE_UPGRADED', 5);


    -Mark
This list is based on the users active over the last 60 minutes.