From 1279630a3a96e299bf8ce16b07cbcc89412758e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Tue, 1 Jan 2008 18:23:14 +0000 Subject: #205138 by pwolanin: require node types in forums vocab, fix help text parameter name (outside t()) --- modules/forum/forum.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/forum/forum.module b/modules/forum/forum.module index a9b817a09..370df2d05 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -28,7 +28,7 @@ function forum_help($path, $arg) { case 'admin/content/forum/add/forum': return '

'. t('A forum holds related or similar forum topics (a forum topic is the initial post to a threaded discussion). For example, a forum named "Fruit" may contain forum topics titled "Apples" and "Bananas", respectively.') .'

'; case 'admin/content/forum/settings': - return '

'. t('These settings allow you to adjust the display of your forum topics. The content types available for use within a forum may be selected by editing the Content types on the forum vocabulary page.', array('@forum_vocabulary' => url('admin/content/taxonomy/edit/vocabulary/'. variable_get('forum_nav_vocabulary', '')))) .'

'; + return '

'. t('These settings allow you to adjust the display of your forum topics. The content types available for use within a forum may be selected by editing the Content types on the forum vocabulary page.', array('@forum-vocabulary' => url('admin/content/taxonomy/edit/vocabulary/'. variable_get('forum_nav_vocabulary', '')))) .'

'; } } @@ -362,7 +362,7 @@ function forum_form_alter(&$form, $form_state, $form_id) { '#value' => t('This is the designated forum vocabulary. Some of the normal vocabulary options have been removed.'), '#weight' => -1, ); - $form['nodes']['#required'] = TRUE; + $form['content_types']['nodes']['#required'] = TRUE; $form['hierarchy'] = array('#type' => 'value', '#value' => 1); $form['settings']['required'] = array('#type' => 'value', '#value' => FALSE); $form['settings']['relations'] = array('#type' => 'value', '#value' => FALSE); -- cgit v1.2.3