Support

Jkello - December 24, 2007 - 14:03
Project:Role Control
Version:5.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Is this module being supported?

I would like to use this module but concern about bugs and future availability.

#1

Kuldip Gohil - January 7, 2008 - 12:42

I have Request to add one thing into this module

I have used rolesignup module and if i have already selected that role which are assign in rolecontrol module then it will come with Tick Mark on that role.

Thanks
Kuldip Gohil

#2

elliot - January 7, 2008 - 15:37

JK Drupal,
I am supporting this module when I have time. If others would like to contribute, I'd be happy to have more help.
In it's current state, Role Control does what we need at our institution. I have no current plans to extend functionality significantly (there has been one request to allow it to manage more than one role at a time - I haven't had time yet, but hopefully I'll get to that eventually.)

Kuldip,
Correct me if I have the wrong, but it sounds like you have users that are already members of the role which is being controlled. You would like the checkbox that enables that role to be checked when they go to their user profile pages, but it isn't because they enabled the role through the rolesignup module. Does that sound correct?
Is this a one-time thing where you are now using Role Control but you were using rolesignup before or is this an ongoing situation? (new users come in and are already members of the controlled role.)

It wouldn't be too hard to write a script to go through and mark the checkbox for everyone in a particular role, I'll have to think about how to have it mark the checkbox when someone visits the profile edit page.
-Elliot

#3

Kuldip Gohil - January 8, 2008 - 06:20

i had make following changes

if ($edit['roles'] != ''){
$default_value = array_key_exists(variable_get('role_control_controlled_role', ''),$edit['roles']) ? array_key_exists(variable_get('role_control_controlled_role', ''),$edit['roles']) : variable_get('role_control_user', 0);}

$form['role_control']['role_control_user'] = array(
'#type' => 'checkbox',
'#title' => variable_get('role_control_user_caption', 'Enable access to premium content'),
'#default_value' => $default_value,
'#description' => variable_get('role_control_user_description', 'Check this box to show premium content.'),
);

and its working.

#4

elliot - January 8, 2008 - 21:26
Status:active» fixed

I've rolled this into 5.x-1.x-dev, I'm trying to roll it into 5.x-1.x having trouble with cvs tags and branches. Anyway, thanks for the code, it looks good and will be included in future versions.
-Elliot

#5

Anonymous (not verified) - January 22, 2008 - 21:31
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.