source: spip-zone/_plugins_/legendes/action/supprimer_legende.php @ 39960

Last change on this file since 39960 was 39960, checked in by brunobergot@…, 9 years ago

hop on dépose le plugin légendes sur la zone (notes d'images à la flickr)

File size: 461 bytes
Line 
1<?php
2
3if (!defined("_ECRIRE_INC_VERSION")) return;
4
5
6function action_supprimer_legende_dist(){
7       
8        $securiser_action = charger_fonction('securiser_action', 'inc');
9        $arg = $securiser_action();
10       
11        list($id_legende) = preg_split(',[^0-9],',$arg);
12        include_spip('inc/autoriser');
13        if (intval($id_legende) AND autoriser('supprimer','legende',$id_legende,null,null)){
14                include_spip("action/editer_legende");
15                legendes_action_supprime_legende($id_legende);
16        }
17}
18
19?>
Note: See TracBrowser for help on using the repository browser.