_comment_get_modes

  1. drupal
    1. 4.7
    2. 5 comment.module
    3. 6 comment.module
    4. 7 comment.module
Versions
4.7 – 7 _comment_get_modes()

Return an array of viewing modes for comment listings.

We can't use a global variable array because the locale system is not initialized yet when the comment module is loaded.

Code

modules/comment.module, line 1650

<?php
function _comment_get_modes() {
  return array(
    COMMENT_MODE_FLAT_COLLAPSED => t('Flat list - collapsed'), 
    COMMENT_MODE_FLAT_EXPANDED => t('Flat list - expanded'), 
    COMMENT_MODE_THREADED_COLLAPSED => t('Threaded list - collapsed'), 
    COMMENT_MODE_THREADED_EXPANDED => t('Threaded list - expanded'),
  );
}
?>