Changeset 59175 in spip-zone
- Timestamp:
- Mar 9, 2012, 10:33:25 PM (9 years ago)
- Location:
- _core_/plugins/mots
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_core_/plugins/mots/mots_autoriser.php
r55236 r59175 97 97 } 98 98 99 // Supprimer un mot ? 100 // Par défaut : pouvoir créer un mot dans le groupe 101 function autoriser_mot_supprimer_dist($faire, $type, $id, $qui, $opt) { 102 // On cherche le groupe du mot 103 $id_groupe = $opt['id_groupe'] ? $opt['id_groupe'] : sql_getfetsel('id_groupe', 'spip_mots', 'id_mot = '.intval($id)); 104 105 return autoriser('creer', 'mot', $id, $qui, array('id_groupe'=>$id_groupe)); 106 } 107 99 108 100 109 /** -
_core_/plugins/mots/prive/objets/liste/mots-admin.html
r55286 r59175 26 26 <td class='utilisations secondaire'>#SET{utilise,#ID_MOT|objets_associes_mot{#ID_GROUPE}|implode{', '}}#GET{utilise}</td> 27 27 <td class='action'> 28 [(#GET{utilise}|non)[(#BOUTON_ACTION{<:mots:info_supprimer_mot:>,#URL_ACTION_AUTEUR{supprimer_mot,#ID_MOT,#SELF},ajax,'','','(function(me){$(me).parents("tr").animateRemove();return true;})(this)'})]] 28 [(#GET{utilise}|non) 29 [(#AUTORISER{supprimer, mot, #ID_MOT}|oui) 30 [(#BOUTON_ACTION{<:mots:info_supprimer_mot:>,#URL_ACTION_AUTEUR{supprimer_mot,#ID_MOT,#SELF},ajax,'','','(function(me){$(me).parents("tr").animateRemove();return true;})(this)'})] 31 ] 32 ] 29 33 </td> 30 34 <td class='id'>[<a href="(#GET{url_edit})">]#ID_MOT[</a>(#GET{url_edit}|oui)]</td>
Note: See TracChangeset
for help on using the changeset viewer.