_comment_get_orders

Versions
4.6 – 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 1645

<?php
function _comment_get_orders() {
  return array(1 => t('Date - newest first'), 2 => t('Date - oldest first'));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.