Hy,

Module works great for me, but I was wondering if there is any way to keep the checkbox selected by default. I changed into the module

'#title' => variable_get('role_control_user_caption', 'Enable access to premium content'),
                    '#default_value' => 0,
                    '#description' => variable_get('role_control_user_description', 'Check this box to show premium content.'),

to

'#title' => variable_get('role_control_user_caption', 'Enable access to premium content'),
					'#default_value' => 1,
					'#description' => variable_get('role_control_user_description', 'Check this box to show premium content.'),

but i'll need to change this manually every time i'll update the module and unortunately i'm not very good with php

Thank you

Comments

elliot’s picture

Status: Active » Closed (won't fix)

Looks like a reasonable solution, but I don't think it makes sense to implement as a default. Unless someone else takes on the module, I am no longer developing it, so updates shouldn't be a problem.