comparison modules/forum/forum.module @ 15:4347c45bb494 6.7

Drupal 6.7
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:32:44 +0100
parents fff6d4c8c043
children
comparison
equal deleted inserted replaced
14:626fcabfa4b8 15:4347c45bb494
1 <?php 1 <?php
2 // $Id: forum.module,v 1.448.2.4 2008/04/25 20:39:54 goba Exp $ 2 // $Id: forum.module,v 1.448.2.5 2008/10/24 19:07:47 dries Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Enable threaded discussions about general topics. 6 * Enable threaded discussions about general topics.
7 */ 7 */
376 unset($form['delete']); 376 unset($form['delete']);
377 } 377 }
378 // Hide multiple parents select from forum terms. 378 // Hide multiple parents select from forum terms.
379 elseif ($form_id == 'taxonomy_form_term') { 379 elseif ($form_id == 'taxonomy_form_term') {
380 $form['advanced']['parent']['#access'] = FALSE; 380 $form['advanced']['parent']['#access'] = FALSE;
381 } 381 }
382 } 382 }
383 if ($form_id == 'forum_node_form') { 383 if ($form_id == 'forum_node_form') {
384 // Make the vocabulary required for 'real' forum-nodes. 384 // Make the vocabulary required for 'real' forum-nodes.
385 $vid = variable_get('forum_nav_vocabulary', ''); 385 $vid = variable_get('forum_nav_vocabulary', '');
386 $form['taxonomy'][$vid]['#required'] = TRUE; 386 $form['taxonomy'][$vid]['#required'] = TRUE;
561 561
562 function forum_get_topics($tid, $sortby, $forum_per_page) { 562 function forum_get_topics($tid, $sortby, $forum_per_page) {
563 global $user, $forum_topic_list_header; 563 global $user, $forum_topic_list_header;
564 564
565 $forum_topic_list_header = array( 565 $forum_topic_list_header = array(
566 array('data' => '&nbsp;', 'field' => NULL), 566 NULL,
567 array('data' => t('Topic'), 'field' => 'n.title'), 567 array('data' => t('Topic'), 'field' => 'n.title'),
568 array('data' => t('Replies'), 'field' => 'l.comment_count'), 568 array('data' => t('Replies'), 'field' => 'l.comment_count'),
569 array('data' => t('Created'), 'field' => 'n.created'), 569 array('data' => t('Created'), 'field' => 'n.created'),
570 array('data' => t('Last reply'), 'field' => 'l.last_comment_timestamp'), 570 array('data' => t('Last reply'), 'field' => 'l.last_comment_timestamp'),
571 ); 571 );