summaryrefslogtreecommitdiff
path: root/modules/translation
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-18 06:50:37 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-18 06:50:37 +0000
commitf3f6d53158f414fba28fe066904c7382ff611a1b (patch)
tree8be8e2eed8d34598020b7a634ccfbc006f562b89 /modules/translation
parentd224c9835163860c861b2cf53eb7569f3c14f432 (diff)
downloadbrdo-f3f6d53158f414fba28fe066904c7382ff611a1b.tar.gz
brdo-f3f6d53158f414fba28fe066904c7382ff611a1b.tar.bz2
- Patch #596582 by sun: remove remnants of theme_node_form().
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.