function ip_login_help_ranges in IP Login 7.3
Same name and namespace in other branches
- 6.2 ip_login.module \ip_login_help_ranges()
- 7.2 ip_login.module \ip_login_help_ranges()
Provides help about accepted values of IP ranges etc.
3 calls to ip_login_help_ranges()
- ip_login_help in ./
ip_login.module - Implementation of hook_help().
- ip_login_install in ./
ip_login.install - Implementation of hook_install().
- ip_login_update_7300 in ./
ip_login.install - Create field_ip_login on user entity. Migrate data from ip_login_user to new field
File
- ./
ip_login.module, line 68 - 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;
}