no_useragents

no_useragents.inc

  1. <?php
  2. // vim:filetype=php expandtab tabstop=2 softtabstop=2 shiftwidth=2 autoindent smartindent
  3.  
  4. function tribune_no_useragents_info() {
  5.   return array(
  6.     'description' => t('Hides useragent information.'),
  7.     'weight'      => -1,
  8.   );
  9. }
  10.  
  11. function tribune_no_useragents_filter(&$post, &$help) {
  12.   if ($post['login']) {
  13.     $post['info'] = $post['login'];
  14.   } else {
  15.     $post['info'] = t("Anonymous");
  16.   }
  17. }
  18.