This is how communit.as modules are installed, enabled, disabled and removed.
| Module | This is how communit.as modules are installed, enabled, disabled and removed. |
| Author | Jaybill McCarthy |
| License | http://communit.as/docs/license |
| See Also | Cts_Controller_Action_Abstract Cts_Controller_Action_Admin Modules |
| Instance Methods | |
| init | Invoked automatically when an instance is created. |
| Actions | |
| index | It will look in the modules directory for newly added modules (which must conform to the module structure and have a properly formatted module.ini) |
| plugin | This allows you to configure the plugin priority for a particular hook. |
function indexAction()
It will look in the modules directory for newly added modules (which must conform to the module structure and have a properly formatted module.ini)
If you’re looking for the plugin hooks, they’re in the Modules model class.
| id | module id of the module to be operated on |
| perform | action to perform. options are enable,disable,install and uninstall |
| modules | an array of module data |
| success | the success message if there is one |
| errors | an array containing errors if there are any |
| notice | a notice message if there is one |
Invoked automatically when an instance is created.
function init()
It will look in the modules directory for newly added modules (which must conform to the module structure and have a properly formatted module.ini)
function indexAction()
This allows you to configure the plugin priority for a particular hook.
function pluginAction()