function invite_help in Invite 7.2
Same name and namespace in other branches
- 8 invite.module \invite_help()
- 5.2 invite.module \invite_help()
- 5 invite.module \invite_help()
- 6.2 invite.module \invite_help()
Implements hook_help().
File
- ./
invite.module, line 35 - Allows your users to send and track invitations to join your site.
Code
function invite_help($path, $arg) {
switch ($path) {
// Display module help
case 'admin/help#invite':
return _invite_module_help();
// Display introductory text on user profile pages
case 'user/%/invites':
case 'user/%/invites/accepted':
$output = '<p>' . t("The invitations shown on this page have been used to join the site. Clicking on an e-mail address takes you to the user's profile page.");
break;
case 'user/%/invites/pending':
$output = '<p>' . t("The invitations shown on this page haven't been accepted yet.");
break;
case 'user/%/invites/expired':
$output = '<p>' . t('The invitations shown on this page have not been used to register on the site within the expiration period of @count days.', array(
'@count' => variable_get('invite_expiry', 30),
));
break;
default:
return;
}
$output .= ' ' . t('The status <em>deleted</em> means the user account has been terminated.') . '</p>';
if (!user_access('withdraw own accepted invitations')) {
$output .= '<p>' . t("At any time, you may withdraw either pending or expired invitations. Accepted invitations can't be withdrawn and count permanently toward your invitation allotment.") . '</p>';
}
return $output;
}