remove the too complicated thing for menu, use a good old template
[platal.git] / hooks / search.inc.php
index 7e27dee..26b7d22 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  Copyright (C) 2003-2006 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -40,15 +40,12 @@ function search_config()
 }
 
 // }}}
-// {{{ menu HOOK
-
-function search_menu()
+// {{{ subscribe HOOK
+function search_subscribe($forlife, $uid, $promo, $pass)
 {
-    global $globals;
-    $globals->menu->addPrivateEntry(XOM_GROUPS, 00, 'Annuaire',         'search.php');
-    $globals->menu->addPublicEntry(XOM_EXT,     00, 'Annuaire de l\'X', 'search.php');
+    require_once('user.func.inc.php');
+    user_reindex($uid);
 }
-
 // }}}
 
 ?>