<?php
/*
 * Gasell: Copyright 2006 Linux-Nantes Association <contact@linux-nantes.fr.eu.org>
 *
 * You should have received a copy of the GNU Public
 * License along with this package; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * Authors: Raude-Morvan Damien (DrazziB) <drazzib@drazzib.com>
 *
 * Historique :
 *  * 30/12/2005 DrazziB : Creation de l'action qui permet de supprimer un type d'adhesion.
 */

/**
 * Suppression d'un type d'adhesion a partir de son identifiant.
 *
 * @param $args['num'] : L'identifiant du type d'adhesion a supprimer.
 */

require_once GASELL_BASE . '/lib/Exercice.php';
require_once GASELL_BASE . '/lib/Adhesion.php';

$Exe = new Exercice();
$result = $Exe->TypeAdhesion->Supprime($args['num']);

if ($result == NULL)
 {
	$this->errorMessage("Suppression echouee ! (Peut-etre un membre est-il adherent a ce type)");
 }
?>