summaryrefslogtreecommitdiff
path: root/modules/translation/translation.module
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-07-03 16:27:51 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-07-03 16:27:51 +0000
commitb5cdf535f4a233cd4156e6c091e6aa1f3f28800a (patch)
tree4296ba0c85de99c4e0c7be62956aa046a60650cf /modules/translation/translation.module
parent7aa0b54b78565a18dd11a04f34824d0909bdab4c (diff)
downloadbrdo-b5cdf535f4a233cd4156e6c091e6aa1f3f28800a.tar.gz
brdo-b5cdf535f4a233cd4156e6c091e6aa1f3f28800a.tar.bz2
#156429 by GreenMother: kill notices if form ID does not exist
Diffstat (limited to 'modules/translation/translation.module')
-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 c4af9c0b8..4fe79fba9 100644
--- a/modules/translation/translation.module
+++ b/modules/translation/translation.module
@@ -92,7 +92,7 @@ function translation_form_alter(&$form, $form_state, $form_id) {
// Description based on text from locale.module.
$form['workflow']['language']['#description'] = t('Enable multilingual support for this content type. If enabled, a language selection field will be added to the editing form, allowing you to select from one of the <a href="!languages">enabled languages</a>. You can also turn on translation for this content type, which lets you have content translated to any of the enabled languages. If disabled, new posts are saved with the default language. Existing content will not be affected by changing this option.', array('!languages' => url('admin/settings/language')));
}
- elseif ($form['#id'] == 'node-form' && translation_supported_type($form['#node']->type)) {
+ elseif (isset($form['#id']) && $form['#id'] == 'node-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.