Quote:
Originally Posted by fysiks
That is entirely upto the coder. You don't have to use the key (item) variable as the identifier. If option 0 is coded as "having not selected anything yet" then it will work just fine.
|
By default, the item selected which is passed into the menu handler starts at 0:
PHP Code:
public menu_handler(id, menu, item)
In this case, he's using data passed into the info section of the item, which is a waste of time and doesn't provide any extra information.
__________________