/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-2013 *
+ * Copyright (c) 2001-2014 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
return array('message_ok'=>_T('config_info_enregistree'));
}
+function test_objet_versionable($desc){
+ if (!$desc['editable']
+ OR !isset($desc['champs_versionnes'])
+ OR !count($desc['champs_versionnes'])
+ )
+ return '';
+
+ // regarder si il y a un vrai champ versionne, pas seulement une jointure
+ foreach ($desc['champs_versionnes'] as $c){
+ if (strncmp($c,'jointure_',9)!=0)
+ return ' ';
+ }
+
+
+ return '';
+}
?>
\ No newline at end of file