source: MediaSPIP/plugins/mediaspip_init/inc/menu_install.php @ 2937

Last change on this file since 2937 was 2937, checked in by kent1, 11 years ago

Le plugin lui même

File size: 340 bytes
Line 
1<?php
2/**
3 * Install le menu
4 *
5 * @return array
6 */
7function inc_menu_install(){
8        include_spip('action/editer_menu');
9        $id_menu = insert_menu();
10
11        if(intval($id_menu)){
12                $infos_menu = array('id_menus_entree' => 0, 'titre' => '','identifiant' => 'barrenav');
13                $err = menu_set($id_menu, $infos_menu);
14        }
15        return array($id_menu,$err);
16}
17
18?>
Note: See TracBrowser for help on using the repository browser.