瀏覽代碼

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";
+}