menu_get_entry — get a single entry from the menu
use Wacs;
use WacsUI;
scalar menu_get_entry( | ...) ; |
parameter | description |
---|---|
name | name of the menu concerned |
caller | name of the program calling it |
entry | hashref/array of the current entry object from menu tree |
options | array of options to use |
optdesc | array of matching descriptions for the options above |
isarea | hashref/array of image-based sarea values |
vsarea | hashref/array of video-based sarea values |
mflags | hashref/array of model flags |
vsites | hashref/array of vendor codes and names |
pre | prefix for generated entries (eg <li><a href=\"
) |
intra | middle section for generated entries (eg \"> )
|
post | postfix for generated entries (eg </a></li>
) |
The menu_get_entry
takes an individual menu
entry (which may result in multiple menu entry lines) and processes it
into a string that is returned. It is available seperately as it can be
called with custom parameters via options and optdesc to do specific
non-standard parameters.
All the usual substitions are available including a special one called
#NEWPERIOD#
which provides a text representation of
the current value of the layout->newperiod
variable.