File: ex.html

package info (click to toggle)
pcb-rnd 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 29,260 kB
  • sloc: ansic: 198,059; sh: 5,767; yacc: 5,568; makefile: 2,519; awk: 1,737; lex: 1,073; python: 519; lisp: 169; tcl: 67; xml: 40; perl: 34; ruby: 5
file content (14 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Create a function <i>hello</i> that will be registered as an action.
The name of the action and the function is always the same. Action names
shall be lowercase.
<p>
When the action is called, use <i>message</i> to append a log message.
<p>
In the "main" section of the script, register the action using fgw_func_reg().
Then save the script cookie and register a new submenu using it. Registering
the submenu with this cookie makes pcb-rnd auto-remove the menu when the script
is unloaded.
<p>
The menu path starts with /main_menu, because it is also possible to
insert menu entries in popups.