summaryrefslogtreecommitdiffstats
path: root/inc/module.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/module.inc.php')
-rw-r--r--inc/module.inc.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/module.inc.php b/inc/module.inc.php
index 6d160787..5525c0a4 100644
--- a/inc/module.inc.php
+++ b/inc/module.inc.php
@@ -146,6 +146,7 @@ class Module
private $directActivation = false;
private $dependencies = array();
private $name;
+ private $collapse;
/**
* @var array assoc list of 'filename.css' => true|false (true = always load, false = only if module is main module)
*/
@@ -167,6 +168,7 @@ class Module
if (isset($json['category']) && is_string($json['category'])) {
$this->category = $json['category'];
}
+ $this->collapse = isset($json['collapse']) && (bool)$json['collapse'];
if (isset($json['client-plugin'])) {
$this->clientPlugin = (bool)$json['client-plugin'];
}
@@ -275,6 +277,11 @@ class Module
return Dictionary::getCategoryName($this->category);
}
+ public function doCollapse()
+ {
+ return $this->collapse;
+ }
+
public function getDir()
{
return 'modules/' . $this->name;