function user_variable_option_list in Variable 7.2
Same name and namespace in other branches
- 7 includes/user.variable.inc \user_variable_option_list()
Implements hook_variable_option_list().
1 string reference to 'user_variable_option_list'
- user_variable_info in includes/
user.variable.inc - User module variables
File
- includes/
user.variable.inc, line 209 - Variable API module. Definition for Drupal core variables
Code
function user_variable_option_list($variable, $options = array()) {
switch ($variable['name']) {
case 'user_register':
return array(
t('Only site administrators can create new user accounts.', array(), $options),
t('Visitors can create accounts and no administrator approval is required.', array(), $options),
t('Visitors can create accounts but administrator approval is required.', array(), $options),
);
}
}