Closed (won't fix)
Project:
Spaces
Version:
6.x-2.0-beta7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2010 at 07:55 UTC
Updated:
27 Jul 2010 at 17:53 UTC
I have built a site with several presets where each preset has a number of features.
I would like to restrict the presets available for selection by role of the user. is there a way for me to do this?
Thanks.
Comments
Comment #1
Grayside commentedThere is no configurable approach I am aware of, but if you create a module and set the weight to 2, you can use hook_form_alter() to remove individual options you do not want to share. You will have to do your security checks in the hook_form_alter() code, as you cannot attach access controls to individual radio buttons.
$form['spaces_preset']['spaces_preset_og']['#options']Comment #2
jmiccolis commentedGrayside's advice is right on. We won't be adding this functionality to spaces itself, but it's quite possible to do this in a small custom module that implements hook_form_alter().