Hi!

I use drupal cvs (okt 23) and the node privacy byrole not work.
admin/settings/node_privacy_byrole show nothing.
(I made it...)
I commented out next lines: (rows 423-427)

// $formitems = '';
// $node_privacy_byrole_enabled = variable_get('node_privacy_byrole_enabled', FALSE);
// $formitems .= form_hidden('node_privacy_byrole_settings_changed', 1);
// $formitems .= form_radio(t('Enable the node_privacy_byrole module.'), 'node_privacy_byrole_enabled', ...
// $formitems .= form_radio(t('Disable the node_privacy_byrole module.'), 'node_privacy_byrole_enabled', ...

and inserted the next:
$options = array('1' => t('Enabled'), '0' => t('Disabled'));
$form["npbs_settings"]= array('#type' => 'fieldset', '#title' => t('Node privacy byrole settings'));
$form["npbs_settings"]['node_privacy_byrole_settings_changed'] = array('#type' => 'hidden', '#default_value' => 1);
$form["npbs_settings"]['node_privacy_byrole_enabled'] = array('#type' => 'radios', '#title' => t('Enable the node_privacy_byrole'), '#default_value' => variable_get('node_privacy_byrole_enabled', FALSE), '#options' => $options, '#description' => t('Enable the node, to use it.'));
return $form;

Now Its show the settings menu, but when I would like to create a node, It's not showing the groups who can view/edit...

Comments

jondoesdrupal’s picture

Status: Active » Closed (fixed)

Tidying up old issues. Focus now is on Drupal 5 version of the module. If there is still demand for this to be resolved and it gets resumbitted then I'll look into finding a solution.