summaryrefslogtreecommitdiff
path: root/modules/translation
diff options
context:
space:
mode:
Diffstat (limited to 'modules/translation')
-rw-r--r--modules/translation/translation.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module
index 531555912..436cdc2d9 100644
--- a/modules/translation/translation.module
+++ b/modules/translation/translation.module
@@ -123,7 +123,7 @@ function translation_form_node_type_form_alter(&$form, &$form_state) {
* is about to be created.
*/
function translation_form_alter(&$form, &$form_state, $form_id) {
- if (isset($form['#id']) && $form['#id'] == 'node-form' && translation_supported_type($form['#node']->type)) {
+ if (!empty($form['#node_edit_form']) && translation_supported_type($form['#node']->type)) {
$node = $form['#node'];
if (!empty($node->translation_source)) {
// We are creating a translation. Add values and lock language field.