Skip to content

Instantly share code, notes, and snippets.

@zeen
Created August 6, 2009 11:26
Show Gist options
  • Save zeen/163254 to your computer and use it in GitHub Desktop.
Save zeen/163254 to your computer and use it in GitHub Desktop.
meta = {
display = "Name visible in UIs";
name = "name_in_code";
type = "object";
properties = {
{
display = "Call my function";
name = "myFunc";
type = "function";
parameters = {
{name = "key", type="string", required=true};
{name = "value", type={"string","number"}};
{name = "host", type={"string"}, visible=false, auto="host"};
};
allow = "user"; -- levels: root, admin, user, anonymous
};
{
display = "Call my method";
name = "myMeth";
type = "method";
parameters = {
{name = "key", type="string"};
{name = "value", type={"string","number"}};
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment