Commit 3716e5e6 authored by Cottser's avatar Cottser Committed by amitaibu

Issue #1983450 by Cottser: Can't unset og_node_create_links destination

parent 96bf30f8
......@@ -3332,7 +3332,7 @@ function og_list_permissions($type) {
* @param $destination
* (optional) The destiantion after a node is created. Defaults to the
* destination passed in the URL if exists, otherwise back to the current
* page.
* page. FALSE to not append any destination to node create links.
* @param $types
* (optional) An array of type names. Restrict the created links to the given
* types.
......@@ -3371,7 +3371,7 @@ function og_node_create_links($group_type, $gid, $field_name, $destination = NUL
if ($destination) {
$options['query']['destination'] = $destination;
}
else {
elseif ($destination !== FALSE) {
$options['query'] += drupal_get_destination();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment