summaryrefslogtreecommitdiffstats
path: root/base/saml.php
diff options
context:
space:
mode:
Diffstat (limited to 'base/saml.php')
-rw-r--r--base/saml.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/base/saml.php b/base/saml.php
new file mode 100644
index 0000000..ff43b7f
--- /dev/null
+++ b/base/saml.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * Plugin SAML
+ *
+ */
+
+if (!defined("_ECRIRE_INC_VERSION")) return;
+
+/**
+ * Ajouter des champs a la table auteurs
+ * @param array $tables_principales
+ * @return array
+ */
+function saml_declarer_tables_principales(&$tables_principales) {
+ // Extension de la table auteurs
+ $tables_principales['spip_auteurs']['field']['nameid'] = "text DEFAULT '' NOT NULL";
+
+ return $tables_principales;
+}
+
+?>