Пример #1
0
/**
 * \brief menu_insert(): Given a Path, order level for the last
 * item, and optional plugin name, insert the menu item.
 *
 * \param $Path      path of the new menu item
 * \param $LastOrder is used for grouping items in order.
 * \param $Target    target of the new menu item
 * \param $URI       URL link of the new menu item
 * \param $HTML      HTML of the new menu item
 * \param $Title     Title of the new menu item
 */
function menu_insert($Path, $LastOrder = 0, $URI = NULL, $Title = NULL, $Target = NULL, $HTML = NULL)
{
    global $MenuList;
    $FullName = $Path;
    menu_insert_r($MenuList, $Path, $LastOrder, $Target, $URI, $HTML, 0, $FullName, $Title);
}
Пример #2
0
/**
 * \brief menu_insert(): Given a Path, order level for the last
 * item, and optional plugin name, insert the menu item.
 *
 * \param $Path      path of the new menu item
 * \param $LastOrder is used for grouping items in order.
 * \param $Target    target of the new menu item
 * \param $URI       URL link of the new menu item
 * \param $HTML      HTML of the new menu item
 * \param $Title     Title of the new menu item
 */
function menu_insert($Path, $LastOrder = 0, $URI = NULL, $Title = NULL, $Target = NULL, $HTML = NULL)
{
    global $MenuList;
    menu_insert_r($MenuList, array(), $Path, $LastOrder, $Target, $URI, $HTML, $Title);
}