Confirmed users
764
edits
No edit summary |
|||
Line 172: | Line 172: | ||
Do 1) both menuitems get added, or 2) does the second call override the first? If 2, that forces extensions to use a submenu if they want more than one item. It also means there's no need for any <tt>remove()</tt> or <tt>reset()</tt> or <tt>clear()</tt> functions. If 1, there is a need. | Do 1) both menuitems get added, or 2) does the second call override the first? If 2, that forces extensions to use a submenu if they want more than one item. It also means there's no need for any <tt>remove()</tt> or <tt>reset()</tt> or <tt>clear()</tt> functions. If 1, there is a need. | ||
People will not understand the context param. Instead, they'll add to the menu depending on external context. e.g., to add an item that appears when page X is browsed, they'll use a page mod to sniff for X and add the item then. They'll see examples on random sites that pass "*" for context and never understand what it means. |