function subuser_admin_settings in Subuser 5
Administration settings
1 string reference to 'subuser_admin_settings'
- subuser_menu in ./
subuser.module - Implementation of hook_menu()
File
- ./
subuser.module, line 206
Code
function subuser_admin_settings() {
$form['subuser_num'] = array(
'#type' => 'textfield',
'#size' => '5',
'#title' => t('Number of sub-users a member can create'),
'#default_value' => variable_get('subuser_num', "5"),
'#description' => t('Number of sub-users a member can create'),
);
$form['subuser_roleid'] = array(
'#type' => 'select',
'#options' => user_roles(),
'#title' => t('Subuser Role'),
'#default_value' => variable_get('subuser_roleid', ''),
'#description' => t('New roles can be added from ') . l("admin/user/roles", "admin/user/roles"),
);
return system_settings_form($form);
}