Needs work
Project:
Homebox OG
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2010 at 09:21 UTC
Updated:
16 Oct 2018 at 15:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
brianV commentedBumping version since 6.x-2.x is no longer being developed.
Comment #2
paul2 commentedThis is exactly the feature I need, as well, and is the only thing preventing us from using Homebox for our Drupal-based distance learning environment. A Drupal 7-compatible version of this feature would be preferred!
Comment #3
adf1969 commentedAttached is a patch (against 7.x-2.0-beta6) that I think will add what you are looking for (It also includes a patch to the .install file that forces homebox_og to have a weight *after* page_manager, since if it doesn't, it can be overridden).
I am using this code and so far it works just fine. If you don't ever set any custom homeboxes for the Content Types, it just defaults to the "default" action; if you do, it can either override them or *prevent* override.
Let me know if you have any questions. The mod only took me about 2 hrs to write/test.
Andrew.
Comment #4
paul2 commentedAwesome - thanks Andrew! My only comment is that the selections for each group type seem to only be respected if the Override group homepages (Action to take when Default selected below) option is set to something besides "- None -". I think the group type-specific options should always be respected—whether or not you want a default homebox for groups in general.
Comment #5
adf1969 commentedpaul2:
You are correct. I only fixed the alter code, but did not add new code to *ensure* the _menu_alter() hook is called.
Attached patch fixes that.
Thanks for catching this bug.
Comment #6
kaizerking commentedis this working ?
any reviews please?
Comment #7
kaizerking commented@adf1969
I got this error on og group configuration page:
Warning: Invalid argument supplied for foreach() in homebox_og_group_settings_page() (line 146 of E:\wamp\www\sites\all\modules\homebox\homebox_og\homebox_og.module).
Comment #8
blainelang commented@adf1969, the foreach error occurs when you have no homepages yet created - should create a new issue.
Comment #9
drumm