Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How can site admin assign a specific theme to an organic group and all its content?
I don't mean any fancy solution where group manager is allowed to pick his favorite theme.
Simply site admin picks a theme for one group,
could be some hacky solution like (inserted somewhere?):
$group_node = og_set_group_context();
$group_nid = $group_node->nid;
if $group_nid == 355 { //e.g. group 355
apply custom theme
}
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedThis code has to run early in the request. I suggest putting it in hook_menu(!may_cache) in your custom module.
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedComment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.