Jump to content

Recommended Posts

Posted

Hi,

I like to install my module like this $modules->get("MyModule");

This seems to work fine if I have clicked "check for new modules" link and the module is visible in modules admin tab.

If the module is not already visible there, module does not get installed. Is there a  way around this?

Posted

Slightly simpler...

$modules->getInstall("Your Module");

Here's what the code comments have to say about this function...

/*
 * Get the requested module and reset cache + install it if necessary.
 * ...
 */
  • Like 3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...