mod_admin_modules

Adds support in the admin for activating and deactivating modules.

The module overview in the admin presents a list of all modules, ordered by module status and priority. An activate/deactivate button allows the module to be (de)activated.

Module configuration dialog

When activate, some modules have a “configuration” button next to the activate/deactivate button. In that case, you can click the button to pop up a configuration dialog where you can set options which are required to configure the module.

To create such a dialog yourself, include a template called _admin_configure_module.tpl in your templates/ folder in your module.

Accepted Events

This module handles the following notifier callbacks:

  • observe_admin_menu: Contribute module entries to the admin menu tree.

Edit on GitHub

Observes

Controllers

Dispatch rules

Actions

Actions

module_rescan

Rescans all modules, to find all templates, lib files, dispatch rules, etc. again.

Actions

module_toggle

Activate/deactivate a module in the module manager in the admin interface.

Referred by

Developer guide

Modules

Modules are the building blocks of Zotonic. They add functionality to your Zotonic website such as: