summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-03-28 08:51:42 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-03-28 08:51:42 -0700
commit1e3714af4dff3a9518074a9856b7428259d1a99d (patch)
tree9b4b45d37af84a23ba98561604c7ef5b5fd66bad /modules
parent8fbf445fa0b68537a59529da3512eb3e45026ea1 (diff)
downloadbrdo-1e3714af4dff3a9518074a9856b7428259d1a99d.tar.gz
brdo-1e3714af4dff3a9518074a9856b7428259d1a99d.tar.bz2
Issue #988318 by jhodgdon: translation_form_node_form_alter() doc says it implements the wrong hook.
Diffstat (limited to 'modules')
-rw-r--r--modules/translation/translation.module7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module
index 8b8614e4e..9bb0b43bc 100644
--- a/modules/translation/translation.module
+++ b/modules/translation/translation.module
@@ -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)) {