You are here

function theme_invite_user_overview in Invite 7.2

Same name and namespace in other branches
  1. 5.2 invite_admin.inc \theme_invite_user_overview()
  2. 6.2 invite_admin.inc \theme_invite_user_overview()

Theme function; display the invite overview table.

Parameters

$items: An array of table rows.

1 theme call to theme_invite_user_overview()
invite_user_overview in ./invite.pages.inc
Menu callback; display an overview of sent invitations.

File

./invite.pages.inc, line 162
Page callbacks for invite module.

Code

function theme_invite_user_overview($variables) {
  $output = '';
  $items = $variables['items'];
  if ($variables['page'] == 'pending') {
    $output .= '
    <div id="invite-reg-link-container" class="messages">
      <a href="" id="invite-reg-link-close">' . t('Hide') . '</a>
      <div id="invite-reg-title"></div>
      <div id="invite-reg-link"></div>
    </div>';
  }
  if (count($items) > 0) {
    $headers = array(
      t('E-mail'),
      t('Status'),
      t('Operations'),
    );
    $output .= theme('table', array(
      'header' => $headers,
      'rows' => $items,
      'attributes' => array(
        'id' => 'invite-user-overview',
      ),
    ));
    $output .= theme('pager');
  }
  else {
    $output .= t('No invitations available.');
  }
  return $output;
}