summaryrefslogtreecommitdiffstats
path: root/modules-available/runmode/inc/runmode.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2017-12-04 18:13:41 +0100
committerSimon Rettberg2017-12-04 18:13:41 +0100
commite079856a7dc7d5ba52f6474b3f82330f27990097 (patch)
treed6f654d96ce009e5b3a11e12c3497cfcb026018a /modules-available/runmode/inc/runmode.inc.php
parent[locationinfo] summary: min-width 90px for child nodes (diff)
downloadslx-admin-e079856a7dc7d5ba52f6474b3f82330f27990097.tar.gz
slx-admin-e079856a7dc7d5ba52f6474b3f82330f27990097.tar.xz
slx-admin-e079856a7dc7d5ba52f6474b3f82330f27990097.zip
[runmode] Properly block simple editor if requested; add customized delete URL
Diffstat (limited to 'modules-available/runmode/inc/runmode.inc.php')
-rw-r--r--modules-available/runmode/inc/runmode.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules-available/runmode/inc/runmode.inc.php b/modules-available/runmode/inc/runmode.inc.php
index d333af58..ad1f52bf 100644
--- a/modules-available/runmode/inc/runmode.inc.php
+++ b/modules-available/runmode/inc/runmode.inc.php
@@ -279,6 +279,10 @@ class RunModeModuleConfig
* @var bool Allow adding and removing machines to this mode via the generic form
*/
public $allowGenericEditor = true;
+ /**
+ * @var string Snippet to construct URL for delete
+ */
+ public $deleteUrlSnippet = false;
public function __construct($file)
{
@@ -293,6 +297,7 @@ class RunModeModuleConfig
$this->loadType($data, 'isClient', 'boolean');
$this->loadType($data, 'noSysconfig', 'boolean');
$this->loadType($data, 'allowGenericEditor', 'boolean');
+ $this->loadType($data, 'deleteUrlSnippet', 'string');
}
private function loadType($data, $key, $type)