function _comment_get_modes in Drupal 6
Same name and namespace in other branches
- 4 modules/comment.module \_comment_get_modes()
- 5 modules/comment/comment.module \_comment_get_modes()
- 7 modules/comment/comment.module \_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.
2 calls to _comment_get_modes()
- comment_controls in modules/
comment/ comment.module - Build a comment control form.
- comment_form_alter in modules/
comment/ comment.module - Implementation of hook_form_alter().
File
- modules/
comment/ comment.module, line 1852 - Enables users to comment on published content.
Code
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'),
);
}