Skip to content
Snippets Groups Projects
Commit ea2e49a7 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #988318 by jhodgdon: translation_form_node_form_alter() doc says it...

- Patch #988318 by jhodgdon: translation_form_node_form_alter() doc says it implements the wrong hook.
parent 6a63b353
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -117,11 +117,10 @@ function translation_form_node_type_form_alter(&$form, &$form_state) { ...@@ -117,11 +117,10 @@ function translation_form_node_type_form_alter(&$form, &$form_state) {
} }
/** /**
* Implements hook_form_alter(). * Implements hook_form_BASE_FORM_ID_alter().
* *
* - Add translation option to content type form. * This function alters language fields on node edit forms when a translation is
* - Alters language fields on node forms when a translation * about to be created.
* is about to be created.
*/ */
function translation_form_node_form_alter(&$form, &$form_state) { function translation_form_node_form_alter(&$form, &$form_state) {
if (translation_supported_type($form['#node']->type)) { if (translation_supported_type($form['#node']->type)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment