/[drupal]/contributions/modules/mail_archive/mail_archive.module
ViewVC logotype

Diff of /contributions/modules/mail_archive/mail_archive.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.10 by jeremy, Sat Jan 22 22:56:49 2005 UTC revision 1.11 by jeremy, Sun Jan 23 13:06:41 2005 UTC
# Line 318  function theme_mail_archive_subscription Line 318  function theme_mail_archive_subscription
318          array('data' => ''),          array('data' => ''),
319          array('data' => l($subscription->title, "mailarchive/$subscription->lid/overview/thread"), 'class' => 'title'),          array('data' => l($subscription->title, "mailarchive/$subscription->lid/overview/thread"), 'class' => 'title'),
320          array('data' => $subscription->messages, 'class' => 'messages'),          array('data' => $subscription->messages, 'class' => 'messages'),
321          array('data' => t('%time ago', array('%time' => format_interval(time() - $subscription->last))), 'class' => 'last')          array('data' => $subscription->last ? t('%time ago', array('%time' => format_interval(time() - $subscription->last))) : t('n/a'), 'class' => 'last')
322        );        );
323      }      }
324      if ($pager = theme('pager', NULL, $subscriptions_per_page, 0, tablesort_pager())) {      if ($pager = theme('pager', NULL, $subscriptions_per_page, 0, tablesort_pager())) {
# Line 451  function mail_archive_menu($may_cache) { Line 451  function mail_archive_menu($may_cache) {
451                         'access' => user_access('administer mail archive'),                         'access' => user_access('administer mail archive'),
452                         'type' => MENU_LOCAL_TASK,                         'type' => MENU_LOCAL_TASK,
453                         'weight' => 8);                         'weight' => 8);
454          $items[] = array('path' => "mailarchive/$lid/message/$mid/raw",
455                           'callback' => 'mail_archive_overview',
456                           'access' => user_access('access mail archive'),
457                           'type' => MENU_SUGGESTED_ITEM,
458                           'weight' => 2);
459    
460        if ($style == 'flat') {        if ($style == 'flat') {
461          if ($previous = mail_archive_message_flat_previous($lid, $mid)) {          if ($previous = mail_archive_message_flat_previous($lid, $mid)) {
# Line 503  function mail_archive_menu($may_cache) { Line 508  function mail_archive_menu($may_cache) {
508          }          }
509        }        }
510      }      }
511        else if ($op == 'search') {
512          $items[] = array('path' => "mailarchive/$lid/search/$mid/$style",
513                           'callback' => 'mail_archive_overview',
514                           'access' => user_access('access mail archive'),
515                           'type' => MENU_SUGGESTED_ITEM,
516                           'weight' => 2);
517        }
518      else if ($op == 'overview') {      else if ($op == 'overview') {
519        $items[] = array('path' => "mailarchive/$lid/overview/flat",        $items[] = array('path' => "mailarchive/$lid/overview/flat",
520                         'title' => t('flat'),                         'title' => t('flat'),

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.3