You are here

function theme_invite_overview in Invite 5

Theme function; display the invite overview table.

Parameters

$items: An array of table rows.

1 theme call to theme_invite_overview()
invite_overview in ./invite.module
Menu callback; display an overview of sent invitations.

File

./invite.module, line 584
Allows your users to send and track invitations to join your site.

Code

function theme_invite_overview($items) {
  if (count($items) > 0) {
    $headers = array(
      t('E-mail'),
      t('Status'),
      '',
    );
    $output = theme('table', $headers, $items, array(
      'id' => 'invites',
    ));
    $output .= theme('pager', NULL, 50, 0);
  }
  else {
    $output = t('No invitations available.');
  }
  return $output;
}