Name

menu_get_entry — get a single entry from the menu

Synopsis

use Wacs;
use WacsUI;
scalar menu_get_entry(...); 
 

Parameters

parameterdescription
namename of the menu concerned
callername of the program calling it
entryhashref/array of the current entry object from menu tree
optionsarray of options to use
optdescarray of matching descriptions for the options above
isareahashref/array of image-based sarea values
vsareahashref/array of video-based sarea values
mflagshashref/array of model flags
vsiteshashref/array of vendor codes and names
preprefix for generated entries (eg <li><a href=\" )
intramiddle section for generated entries (eg \">)
postpostfix for generated entries (eg </a></li> )

Summary

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.

Availability

menu_get_entry is available in both perl and php. The #NEWPERIOD# functionality was introduced in WACS 0.8.5.