function ip_login_help_ranges in IP Login 7.2
Same name and namespace in other branches
- 6.2 ip_login.module \ip_login_help_ranges()
- 7.3 ip_login.module \ip_login_help_ranges()
Provides help about accepted values of IP ranges etc.
2 calls to ip_login_help_ranges()
- ip_login_form_alter in ./
ip_login.module - Implementation of hook_form_alter().
- ip_login_help in ./
ip_login.module - Implementation of hook_help().
File
- ./
ip_login.module, line 91 - Allow user login by IP addresses, ranges or wildcards.
Code
function ip_login_help_ranges($intro = '') {
$help = '<p id="ip_login">' . $intro . ' ' . t('Accepted IP Login match values are:') . '</p>';
$help .= '<ul><li>';
$help .= t("Single IP matches like <code>123.123.123.123</code>");
$help .= '</li><li>';
$help .= t("Wildcards using an asterisk (<code>*</code>) in any quadrant except the first one, for example <code>123.123.123.*</code> or <code>100.*.*.*</code> etc.");
$help .= '</li><li>';
$help .= t("Ranges using a hyphen (<code>-</code>) in any quadrant except the first one, for example <code>123.123.123.100-200</code> etc.");
$help .= '</li><li>';
$help .= t("Any number of comma-separated IP addresses or ranges like <code>10.11.12.13, 123.123.123.100-200, 123.123.124-125.*</code> etc.");
$help .= '</li></ul>';
return $help;
}