_comment_get_orders

  1. drupal
    1. 4.7
    2. 5 comment.module
    3. 6 comment.module
Versions
4.7 – 6 _comment_get_orders()

Return an array of viewing orders 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 1665

<?php
function _comment_get_orders() {
  return array(
    COMMENT_ORDER_NEWEST_FIRST => t('Date - newest first'), 
    COMMENT_ORDER_OLDEST_FIRST => t('Date - oldest first'),
  );
}
?>