Closed (fixed)
Project:
Book made simple
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2011 at 19:16 UTC
Updated:
25 Feb 2013 at 17:26 UTC
Jump to comment: Most recent file
Comments
Comment #1
MarcElbichon commentedWhat is your need exactly ?
You want to add gid param in the redirect url in the combo box ?
I don't know organic group. How can i get the group id of the current node ? From the url ?
Does url always gids[0]=xxxxx or can be gids[x]=xxx ?
Comment #2
soulfroysExactly. I used the code below (book_made_simple.module) and it worked, but ... I am a newbie in Drupal.
Thanks for your reply!
Comment #3
MarcElbichon commentedCommited to 6 and 7 dev version.
Thank for your contribution
Comment #4
soulfroysI'm glad that my suggestion has been Committed! I removed the "zero" of the title (I don't know where it came from).
Someone else needs this integration?
Comment #5
soulfroysThe last commit has some errors. I made the necessary modifications (attached patch).
Note: I am newbie in Drupal/PHP.
Comment #6
MarcElbichon commentedSorry.
Committed to dev version.
Comment #7
soulfroysI'm sorry too, I forgot to change your code in line 484. Follow new "diff" (I don't have GIT) file for last dev (6.x-3.x-dev - 2011-Dec-13).
Comment #8
MarcElbichon commentedQuery parameter can be either a string or an array. I've replaced line 488
by
I've commited a new version, but you can do the update yourself if you want.
Tell me back if it works (or not !)
Comment #9
soulfroysYou're right, so the bellow modifications are unnecessary:
The Internet Explorer gives us an ugly url, but it works!
Comment #10
MarcElbichon commentedComment #11
MarcElbichon commentedComment #12
MarcElbichon commentedComment #13
keyiyek commentedDoes this work for version 7.x?
if ($group_node && og_is_member($group_node)) {I'm trying to set it with no luck. My url, doesn't get changed. It seems the line
is returning false.
I also seen that the "create content link" from og modify the path with the string
I know og has changed drastically recently, maybe this is due to that.