The function og_get_group_context() (in freelinking/modules/freelinking_prepopulate/freelinking_prepopulate.utilities.inc around line 40) is no longer part of the organic group version in Drupal 7.

It has been commented out for now. But it would be nice if someone familiar with OG could provide a patch to get this functionality back into the D7 version of the project.

Comments

misc’s picture

Version: 7.x-3.1 » 7.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new711 bytes

I guess that we should use og_context() instead, but I am not into og myself, so this patch just removes the function. Maybe someone who uses og could create an patch to get the same functionality into freelinking.

misc’s picture

StatusFileSize
new1.41 KB

Missed one call to the function, new patch.

juampynr’s picture

Status: Needs review » Needs work

I will wait until a patch that supports Organic Groups is provided or I will try to find myself some time to write it.

gisle’s picture

Title: Call to undefined function » Call to undefined OG function in FP
Issue summary: View changes

Updated title to reflect that this is a problem with Freelinking Prepopulate that has to do with Organic group integration. It is similar to the problem upgrading from D6 to D7 that affects taxonomies, see #2120353: freelinking prepopulate migration bug from d6 to d7.

For the record: The patch in #2 doesn't solve the problem. it just disables the use of data from OG to prepopulate the new node.

However, since it blocks new content from being created if OG is activated, it probably should be applied as a stopgap until a real solution is found.

  • gisle committed c58ad40 on 7.x-3.x
    #1504124 by gisle: Commented out call to undefined function.
    
gisle’s picture

Title: Call to undefined OG function in FP » Support OG contexts in freelinking_prepopulate
Category: Bug report » Feature request
Priority: Normal » Minor
Issue summary: View changes
Status: Needs work » Postponed

Downgrading to a minor feature request. It is postponed until somebody familiar with OG provides a patch that makes it to RTBC.

  • gisle committed c58ad40 on 8.x-3.x
    #1504124 by gisle: Commented out call to undefined function.