You are here

function antispam_get_submode_menu in AntiSpam 7

1 call to antispam_get_submode_menu()
antispam_moderation_form in ./antispam.admin.inc

File

./antispam.admin.inc, line 652
The antispam admin theme.

Code

function antispam_get_submode_menu($mode, $submode) {
  $out = '<div><ul class="tabs secondary">';
  $spam_li = $unpublished_li = $published_li = '<li>';
  if ($submode == 'spam') {
    $spam_li = '<li class="active">';
  }
  elseif ($submode == 'unpublished') {
    $unpublished_li = '<li class="active">';
  }
  elseif ($submode == 'published') {
    $published_li = '<li class="active">';
  }
  $out .= $spam_li . l(t('Spam'), 'admin/content/antispam/' . $mode . '/spam') . '</li>';
  $out .= $unpublished_li . l(t('Unpublished'), 'admin/content/antispam/' . $mode . '/unpublished') . '</li>';
  $out .= $published_li . l(t('Published'), 'admin/content/antispam/' . $mode . '/published') . '</li>';
  $out .= '</ul></div>';
  return $out;
}