Module

This is how communit.as modules are installed, enabled, disabled and removed.

Summary
ModuleThis is how communit.as modules are installed, enabled, disabled and removed.
AuthorJaybill McCarthy
Licensehttp://communit.as/docs/license
See AlsoCts_Controller_Action_Abstract Cts_Controller_Action_Admin Modules
Instance Methods
initInvoked automatically when an instance is created.
Actions
indexIt will look in the modules directory for newly added modules (which must conform to the module structure and have a properly formatted module.ini)
pluginThis allows you to configure the plugin priority for a particular hook.

Author

Jaybill McCarthy

Instance Methods

init

function init()

Invoked automatically when an instance is created.  For this class, does nothing other than initialize the parent object (calls init() on the parent instance).

Actions

index

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.

HTTP GET or POST Parameters

idmodule id of the module to be operated on
performaction to perform. options are enable,disable,install and uninstall

View Variables

modulesan array of module data
successthe success message if there is one
errorsan array containing errors if there are any
noticea notice message if there is one

plugin

function pluginAction()

This allows you to configure the plugin priority for a particular hook.  It doesn’t actually work yet.  At the moment, all plugins get a priority of 10.

View Variables

hooksAn array of hooks that are in use
function init()
Invoked automatically when an instance is created.
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)
function pluginAction()
This allows you to configure the plugin priority for a particular hook.
Close