I'm working on a module that uses organic groups. I want to allow different groups to choose different themes, but I don't want individual users to have that capability.

I'm assuming that this is easy to do, but I can't find a setting. Can anybody point me in the right direction?

Thanks,
Rob

Comments

Torenware’s picture

Anyone have a suggestion how best to do this?

I can certainly do coding if not setting exists, as may be true here.

Rob Thorne
Torenware Networks
http://www.torenware.com

Rob Thorne
Torenware Networks

sepeck’s picture

Maybe you could add an Access Control for themes in user module?

-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

Torenware’s picture

Having read the code (it's actually in system.module) that's putting it there, yeah, it's necessary to add such code, but it's easy to do.

I'd be happy to do that. Who needs to see/get the patches?

Thanks,
Rob

Rob Thorne
Torenware Networks
http://www.torenware.com

Rob Thorne
Torenware Networks

sepeck’s picture

http://drupal.org/contributors-guide
Read the coding standards and stuff, but here's a summary.

In the system is a core module so in the drupal project open a feature request for it, then attach the patch for your code and set it to patch. Generally once it's released new features don't get added in but someone may take it and add it to HEAD. Also, someone else may apply the patch to their install.

To be really adventurous, set up and run HEAD and make a patch for that with the feature request. Respond to feedback as appropriate. :)

-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

Torenware’s picture

I've patched against 4.6.0. If I need to do HEAD as well, I'll do so, but since I don't have write access to CVS anyway, it'll require review.

The issue is create system option to prevent users from changing the theme, and the patch is included there.

Rob Thorne
Torenware Networks
http://www.torenware.com

Rob Thorne
Torenware Networks