function forum_form_main in Drupal 5
Same name and namespace in other branches
- 6 modules/forum/forum.admin.inc \forum_form_main()
- 7 modules/forum/forum.admin.inc \forum_form_main()
1 string reference to 'forum_form_main'
- forum_menu in modules/
forum/ forum.module - Implementation of hook_menu().
File
- modules/
forum/ forum.module, line 472 - Enable threaded discussions about general topics.
Code
function forum_form_main($type, $edit = array()) {
if ($_POST['op'] == t('Delete') || $_POST['confirm']) {
return drupal_get_form('forum_confirm_delete', $edit['tid']);
}
switch ($type) {
case 'forum':
return drupal_get_form('forum_form_forum', $edit);
break;
case 'container':
return drupal_get_form('forum_form_container', $edit);
break;
}
}