Active
Project:
Project issue tracking
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 May 2013 at 22:53 UTC
Updated:
13 May 2013 at 20:16 UTC
Once I enable the project issue module, all my features become overridden because of the introduced view mode.
This is a burden for distributions like Commons, where we try override as little as possible from the given codebase.
Is there a way to use the project issue module without having to recreate all existing features?
Comments
Comment #1
dwwWhat? features doesn't let other modules define view modes? That seems like a bug in features.
Sadly, there's no way to define view modes that are tied to only specific node types.
But ugh, this is lame.
And it just got worse via #1979066: Consider using field formatters to display changes ...
Comment #2
BarisW commentedI've fixed it by adding a hook like this:
Comment #3
dwwAhh, cool. Good to know. That probably means there's a hook_field_default_field_instances() or something. ;) thanks
Comment #4
BarisW commentedYes that's true, there is a hook_field_default_field_instances which you can use to add fields only for specific content types.
Drupal Commons uses that a lot. For instance, I've created a feature to add a files field to given node types like this:
<?php