Hi,
I realize it's because of personal taste but I have changed the select-box to a list of radiobuttons.
The select-box looks OK on the edit profile page; but it really doesn't look that good on the edit node page.

So for those who feel the same:

Change

function private_nodes_form_alter($form_id, & $form) {
...
	$form['account']['privacy'] = array(
      '#type' => 'select',
      '#title' => $title,
      '#options' => $options,
      '#default_value' => $current_level,
    );

To

function private_nodes_form_alter($form_id, & $form) {
...
$form['nodeoptions'] = array(
  '#type' => 'fieldset',
  '#title' => t('Access options'),
  '#collapsible' => TRUE,
  '#collapsed' => TRUE,
  '#weight' => 20,
);
	
$form['nodeoptions']['privacy'] = array(
  '#type' => 'radios',
  '#title' => $title,
  '#options' => $options,
  '#default_value' => $current_level,
);

Comments

finex’s picture

This is a good idea, now I'll test it.