On this page
function _comment_get_modes
_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.
File
- modules/comment/comment.module, line 2421
 - Enables users to comment on published content.
 
Code
function _comment_get_modes() {
  return array(
    COMMENT_MODE_FLAT => t('Flat list'),
    COMMENT_MODE_THREADED => t('Threaded list')
  );
}
  © 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
 https://api.drupal.org/api/drupal/modules!comment!comment.module/function/_comment_get_modes/7.x