- Patch #988318 by jhodgdon: translation_form_node_form_alter() doc says it implements the wrong hook.
parent
6a63b3531a
commit
ea2e49a7d1
|
@ -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.
|
||||
* - Alters language fields on node forms when a translation
|
||||
* is about to be created.
|
||||
* This function alters language fields on node edit forms when a translation is
|
||||
* about to be created.
|
||||
*/
|
||||
function translation_form_node_form_alter(&$form, &$form_state) {
|
||||
if (translation_supported_type($form['#node']->type)) {
|
||||
|
|
Loading…
Reference in New Issue