Indirectly related to this issue: http://drupal.org/node/292496
I decided to create my own per-group On/Off Switch for Group Forums. All I did was simply say: "If the switch is off, then don't show the "Group Forums", "Manage Group Forums" and "Create Forum Topic" links.
This works fine, except that the "Group Forums" and "Manage Group Forums" links don't have their own specific key values. On one site, the keys are 0 and 1, respectively. On another, 1 and 2. So, it's very difficult to locate them in hook_og_link_alter:
// Don't display forum links if this group doesn't allow it
if (variable_get("lesspaper_forum_status_$gid", 0) != 1) {
if ($key == '0' || $key == '1' || $key == 'create_forum') {
unset($links["$key"]);
}
}
It would be nice if the keys for these items were something like 'group_forums' and 'manage_group_forums'.
Thanks!
Comments
Comment #1
Anonymous (not verified) commentedI'll look into this tomorrow
Comment #2
Anonymous (not verified) commentedI have responded to ..
http://drupal.org/node/292496
.. but will not be looking any further into this feature request.