You are here

function _comment_get_orders in Drupal 6

Same name and namespace in other branches
  1. 4 modules/comment.module \_comment_get_orders()
  2. 5 modules/comment/comment.module \_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.

2 calls to _comment_get_orders()
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 1867
Enables users to comment on published content.

Code

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