Summary

I've installed Localization Server 7.x-1.x-dev. The associated modules depend on the Localization Groups module, which in turn depends on the OG User Roles Module (http://drupal.org/project/og_user_roles). This module does not have version 7 available.

Workaround

Currently, we got around the dependency by:

1. Remarking out the the dependency on og_user_roles in l10n_groups.info

;dependencies[] = og_user_roles

2. In l10n_groups.module, replace:

if (($item = og_user_roles_menu_get_item()) && ($item['path'] == 'node/%') && ($item['page_arguments'][0]->type == 'l10n_group')) {

with:

if (($item = menu_get_item()) && ($item['path'] == 'node/%') && ($item['page_arguments'][0]->type == 'l10n_group')) {

This seems to work at the moment, but we're not sure whether this is the right thing to do.

More info

We found og_user_roles_menu_get_item() defined at http://www.international-alert.org/sites/all/modules/og_user_roles/og_us.... The header comments to this say:

 * In Drupal 7, this fork can probably be replaced with
 * @code
 *   drupal_static_reset('menu_get_item');
 * @endcode

We weren't sure how the drupal_static_reset() should be used in this code.

Comments

inkling’s picture

Title: 7.x Dependency on og_user_roles » 7.x Dependency on Nonexistant 7.x og_user_roles Module
gábor hojtsy’s picture

Yeah, this submodule was not fully ported to Drupal 7 yet. og_user_roles will not be ported to Drupal 7, since og itself should provide role management functionality. There is probably more in-depth thinking required to rework the l10n_group functionality to the new D7 og model. All feedback is welcome on what made the functionality work for you (vs. just the module to not whitescreen :).

SebCorbin’s picture

Status: Active » Closed (duplicate)

Patch in #1466262: Multiple bug fixes for 7.x-1.x branch takes care of this issue.