Index: adminrole.module =================================================================== --- adminrole.module (revision 21) +++ adminrole.module (working copy) @@ -64,13 +64,18 @@ function adminrole_admin_settings() { $form = array(); $u_roles = user_roles(); - ksort($u_roles); + asort($u_roles); + $options = array(); + $options[] = t('-- Please Select One --'); + foreach ($u_roles as $key => $value) { + $options[$key] = $value; + } $form['adminrole_adminrole'] = array( '#type' => 'select', '#title' => t('Admin Roles'), '#default_value' => variable_get('adminrole_adminrole', 0), '#description' => t("Which Role is Admin?"), - '#options' => array_merge(array(0 => t('-- Please Select One --')), $u_roles), + '#options' => $options, ); return system_settings_form($form); }