diff --git a/modules/qtx_module.php b/modules/qtx_module.php index 004eaefe..b974d75e 100644 --- a/modules/qtx_module.php +++ b/modules/qtx_module.php @@ -7,26 +7,38 @@ */ class QTX_Module { /** + * Internal id. + * * @var string */ public $id; /** + * Name for display. + * * @var string */ public $name; /** - * @type array + * Array of required plugin(s) defined in the WP format (directory/file.php). + * If this list is not empty, the module requires at least one of the plugin(s) to be activated. + * + * @var string[] */ public $plugins; /** + * Incompatible plugin in the WP format, only one or zero supported. + * If not empty, the module cannot be activated is this plugin is active. + * * @var string|null */ public $incompatible; /** + * A module can have specific admin settings. + * * @var bool */ protected $has_settings; @@ -47,7 +59,7 @@ function __construct( $fields ) { } /** - * Check if the module specific settings. + * Check if the module has specific settings. * * @return bool */ @@ -56,7 +68,7 @@ function has_settings() { } /** - * Retrieve the default enabled state for the initial admin settings. + * Retrieve the default settings for the "admin enabled state" (checkbox). * * @return bool */ diff --git a/modules/qtx_module_setup.php b/modules/qtx_module_setup.php index 627e9912..88c21837 100644 --- a/modules/qtx_module_setup.php +++ b/modules/qtx_module_setup.php @@ -40,7 +40,7 @@ protected static function get_builtin_setup() { [ 'id' => 'events-made-easy', 'name' => 'Events Made Easy', - 'plugin' => [ 'events-made-easy/events-manager.php' ], + 'plugins' => [ 'events-made-easy/events-manager.php' ], 'incompatible' => 'events-made-easy-qtranslate-x/events-made-easy-qtranslate-x.php', ], [