undo prev commit, was wrong

This commit is contained in:
Bachir Soussi Chiadmi 2023-04-25 16:50:23 +02:00
parent 6a09481105
commit 7d989bad5d
2 changed files with 11 additions and 11 deletions

View File

@ -39,7 +39,7 @@ content:
label_singular: ''
label_plural: ''
allow_new: true
allow_existing: true
allow_existing: false
match_operator: CONTAINS
allow_duplicate: false
collapsible: false

View File

@ -149,17 +149,17 @@ function ouatminimal_preprocess_input(&$variables) {
if (preg_match('/^ief-field_entite-\d+-subform-field_entite-form-add$/', $name)) {
$element['#value'] = $element['#attributes']['value'] = $variables['attributes']['value'] = "Editer l'entité";
}
// rename entité reference in paragraphe "Ajouter un node existant" to "ajouyer entite existante"
// "ief-field_entite-0-subform-field_entite-form-add"
if (preg_match('/^ief-field_entite-\d+-subform-field_entite-form-add-existing$/', $name)) {
$element['#value'] = $element['#attributes']['value'] = $variables['attributes']['value'] = "Ajouter une entité éxistante";
}
// // rename entité reference in paragraphe "Ajouter un node existant" to "ajouyer entite existante"
// // "ief-field_entite-0-subform-field_entite-form-add"
// if (preg_match('/^ief-field_entite-\d+-subform-field_entite-form-add-existing$/', $name)) {
// $element['#value'] = $element['#attributes']['value'] = $variables['attributes']['value'] = "Ajouter une entité éxistante";
// }
// rename entité reference in paragraphe "Ajout de node" to "Ajouter"
// "ief-reference-submit-field_entite-7-subform-field_entite-form"
if (preg_match('/^ief-reference-submit-field_entite-\d+-subform-field_entite-form$/', $name)) {
$element['#value'] = $element['#attributes']['value'] = $variables['attributes']['value'] = "Ajouter";
}
// // rename entité reference in paragraphe "Ajout de node" to "Ajouter"
// // "ief-reference-submit-field_entite-7-subform-field_entite-form"
// if (preg_match('/^ief-reference-submit-field_entite-\d+-subform-field_entite-form$/', $name)) {
// $element['#value'] = $element['#attributes']['value'] = $variables['attributes']['value'] = "Ajouter";
// }
// rename remove (paragraphe) to "supprimer"
if (preg_match('/field_entite_\d+_remove/', $name)) {