vid] = $vocabulary->name; } // List all vocabularies. $form['taxonomy_tools_role_access_vocab_config'] = array( '#type' => 'checkboxes', '#options' => $options, '#title' => t('Vocabularies'), '#description' => t('Select vocabularies which will use Taxonomy Role Access.'), '#default_value' => variable_get('taxonomy_tools_role_access_vocab_config', array()), ); $options = array(); $roles = user_roles(); // User role "authenticated user" is not used when other custom // created user roles exist. if (sizeof($roles) > 2) { unset($roles[2]); } // List all user roles. $form['taxonomy_tools_role_access_role_config'] = array( '#type' => 'checkboxes', '#options' => $roles, '#title' => t('User roles'), '#description' => t('Select user roles which will be controlled by Taxonomy Role Access.'), '#default_value' => variable_get('taxonomy_tools_role_access_role_config', array()), ); return system_settings_form($form); }