function _protected_node_get_failed_password_ip_window_options in Protected Node 7
Same name and namespace in other branches
- 1.0.x protected_node.module \_protected_node_get_failed_password_ip_window_options()
Helper function.
Used to get the options for the protected_node_failed_password_ip_window variable.
2 calls to _protected_node_get_failed_password_ip_window_options()
- protected_node_admin_settings in ./
protected_node.settings.inc - Define the settings form.
- protected_node_variable_info in ./
protected_node.variable.inc - Implements hook_variable_info().
File
- ./
protected_node.module, line 1478 - Protected Node module.
Code
function _protected_node_get_failed_password_ip_window_options() {
return array(
0 => t('None (flood control disabled)'),
) + drupal_map_assoc(array(
60,
180,
300,
600,
900,
1800,
2700,
3600,
10800,
21600,
32400,
43200,
86400,
), 'format_interval');
}