| 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())) { |
| 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)) { |
| 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'), |