|
@@ -148,7 +148,19 @@ function ouatminimal_preprocess_input(&$variables) {
|
|
|
// rename entité reference in paragraphe "add node" to "editer entité"
|
|
|
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 "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)) {
|
|
|
$element['#value'] = $element['#attributes']['value'] = $variables['attributes']['value'] = "Supprimer";
|