My specific problem: In a Feature, I have a View. I want to use this View on several different sites. The View has a nid-argument, which validates Node:type == [node_type_1]. When the Feature get's exported, it outputs the filter settings like this:
'node_type_1' => 'node_type_1', 'node_type_2' => 0, 'node_type_3' => 0,
Problems ensue when the feature is used on site number 2, which, with exception of [node_type_1], has an entirely different list of content types. Thus the list becomes
'node_type_1' => 'node_type_1', 'node_type_4' => 0, 'node_type_5' => 0,
And suddently, I have an override, with a diff like:
< 'node_type_2' => 0, < 'node_type_3' => 0, > 'node_type_4' => 0, > 'node_type_5' => 0,
Some background: At some point, I listened to an interview with a Features maintainer, who mentioned something interesting. It is both possible, and supported, to add custom code into features. I hope that can provide me with more dynamic means of handling this particular part of my problem.
My question is deliberately stated such that I hope someone can provide an answer to my specific problem, as well as similar problems, from other modules. I can easily imagine a similar problem showing up in many different situations. However, if it turns out that no-one can solve the problem in a general fashion, yet can solve this specific problem, I will re-phrase the question title to reflect that better.