소스 검색

user_register_form Valider #2439

bach 1 년 전
부모
커밋
9aab063340
3개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      config/sync/core.extension.yml
  2. 5 0
      web/modules/reha_mod/reha_mod.info.yml
  3. 11 0
      web/modules/reha_mod/reha_mod.module

+ 1 - 0
config/sync/core.extension.yml

@@ -97,6 +97,7 @@ module:
   persistent_login: 0
   phone_number: 0
   redis: 0
+  reha_mod: 0
   responsive_image: 0
   rules: 0
   search_api: 0

+ 5 - 0
web/modules/reha_mod/reha_mod.info.yml

@@ -0,0 +1,5 @@
+name: reha_mod
+type: module
+description: Provides additional functionality for the site.
+package: Custom
+core_version_requirement: ^9 || ^10

+ 11 - 0
web/modules/reha_mod/reha_mod.module

@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @file
+ * Primary module hooks for reha module.
+ */
+
+
+function reha_mod_form_user_register_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
+  $form['actions']['submit']['#value'] = "valider";
+}