Skip to content
Snippets Groups Projects
Commit 2dec3747 authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Clarify description of ARRAY function

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 56bd1469
No related branches found
No related tags found
No related merge requests found
...@@ -224,10 +224,12 @@ struct ast_custom_function array_function = { ...@@ -224,10 +224,12 @@ struct ast_custom_function array_function = {
.syntax = "ARRAY(var1[,var2[...][,varN]])", .syntax = "ARRAY(var1[,var2[...][,varN]])",
.write = builtin_function_array, .write = builtin_function_array,
.desc = .desc =
"The comma-separated list passed as a value to which the function is set\n" "The comma-separated list passed as a value to which the function is set will\n"
"will be interpreted as a set of values to which the comma-separated list\n" "be interpreted as a set of values to which the comma-separated list of\n"
"of variable names in the argument should be set.\n" "variable names in the argument should be set.\n"
"Hence, Set(ARRAY(var1,var2)=1,2) will set var1 to 1 and var2 to 2\n", "Hence, Set(ARRAY(var1,var2)=1,2) will set var1 to 1 and var2 to 2\n"
"Note: remember to either backslash your commas in extensions.conf or quote the\n"
"entire argument, since Set can take multiple arguments itself.\n",
}; };
static char *builtin_function_len(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len) static char *builtin_function_len(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment