summaryrefslogtreecommitdiffhomepage
path: root/documentation/api/modules/luci.model.uci.html
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-11-16 12:36:29 +0100
committerJo-Philipp Wich <jow@openwrt.org>2015-11-16 12:37:23 +0100
commit092d2143bd452708fe3ce8e5c6a6cfe133ee24c9 (patch)
treed851a7797b60331843bac6110804526dc2105648 /documentation/api/modules/luci.model.uci.html
parent1106b9346a776bfed6307e6df601781becbe41f5 (diff)
luci-base: fix uci documentation issue (#538)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'documentation/api/modules/luci.model.uci.html')
-rw-r--r--documentation/api/modules/luci.model.uci.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/documentation/api/modules/luci.model.uci.html b/documentation/api/modules/luci.model.uci.html
index 9e50d9900d..cf75aebccb 100644
--- a/documentation/api/modules/luci.model.uci.html
+++ b/documentation/api/modules/luci.model.uci.html
@@ -1119,6 +1119,12 @@ Name of created section
Set a value or create a named section.
+
+When invoked with three arguments <code>config</code>, <code>sectionname</code>, <code>sectiontype</code>,
+then a named section of the given type is created.
+
+When invoked with four arguments <code>config</code>, <code>sectionname</code>, <code>optionname</code> and
+<code>optionvalue</code> then the value of the specified option is set to the given value.
@@ -1138,7 +1144,7 @@ Set a value or create a named section.
</li>
<li>
- value: UCI value or nil if you want to create a section
+ value: UCI value or nothing if you want to create a section
</li>
</ul>