Another dependency issue I encountered:
admin/structure/mchammer/settings assumes the DS module is loaded.
If not, you get the following error:
Fatal error: Call to undefined function ds_entity_view_modes() in sites/all/modules/mchammer/includes/admin.inc on line 44

Perhaps DS should be a dependency, or these settings hidden if not enabled?

Comments

nils.destoop’s picture

Version: » 7.x-1.x-dev
Status: Active » Fixed

DS used to be a dependency, but we removed it.
Code has been changed. We now get the view modes with entity_get_info().

lord_of_freaks’s picture

Status: Fixed » Needs work

There are two reference to ds_entity_view_modes yes:

includes/admin.inc:44: $view_modes = ds_entity_view_modes('node');
plugins/display_renderers/panels_renderer_mchammer.class.php:185: $view_modes = ds_entity_view_modes('node');

Anyway great job!!!!!
Greets

lord_of_freaks’s picture

lord_of_freaks’s picture

Status: Needs work » Needs review
StatusFileSize
new3.17 KB

Please ignore previous patch, it´s uncomplete.

This one solves both Error when DS is not enabled and Error when locale module is not enabled issues

Thanks

nils.destoop’s picture

Status: Needs review » Fixed

This was also fixed :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

tsi’s picture

Status: Closed (fixed) » Active

Seems like there is something wrong with your project settings - I see you've committed the fix to 7.x-1.x but it is not available when downloading via Drush or in the project page download links.
Check the 'default-branch' tab under the project edit page.

Anyway, thank you for this project, just in time :)

nils.destoop’s picture

Status: Active » Fixed

Default branch was indeed still on master. Changed it to 7.x-1.x. :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.