Closed (fixed)
Project:
Role Control
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Dec 2007 at 14:03 UTC
Updated:
22 Jan 2008 at 21:31 UTC
Is this module being supported?
I would like to use this module but concern about bugs and future availability.
Comments
Comment #1
Kuldip Gohil commentedI 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
Comment #2
elliot commentedJK 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
Comment #3
Kuldip Gohil commentedi 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.
Comment #4
elliot commentedI'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
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.