Legend of the Green Dragon

modulestatus.php

Table of Contents

module_status()  : int
Returns the status of a module as a bitfield.
is_module_active()  : bool
Determines if a module is activated.
is_module_installed()  : bool
Determines if a module is installed.
get_module_install_status()  : array<string|int, mixed>
Get status of module.

Functions

module_status()

Returns the status of a module as a bitfield.

module_status(string $modulename[, string $version = null ]) : int
Parameters
$modulename : string

The module name

$version : string = null

The version to check for (null for don't care)

Return values
int

The status codes for the module

is_module_active()

Determines if a module is activated.

is_module_active(string $modulename) : bool
Parameters
$modulename : string

The module name

Return values
bool

If the module is active or not

is_module_installed()

Determines if a module is installed.

is_module_installed(string $modulename[, string $version = false ]) : bool
Parameters
$modulename : string

The module name

$version : string = false

The version to check for

Return values
bool

If the module is installed

get_module_install_status()

Get status of module.

get_module_install_status() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results