See http://drupal.org/project/module_supports

There are a few of these directives that would be handy for features, specifically 'conflicts' and 'replaces'. The scenario we have that would be handy is we currently have two separate comment features that act as wrappers for separate comment modules. The only components associated with these features are the permissions associated with the modules, but we would still like them to conflict, as their core functionality conflicts, even if the components themselves don't.

As Young mentioned on IRC, more of these could become handy once clear semantic meaning has been given to them.

Comments

dave reid’s picture

Subscribing

socialnicheguru’s picture

I had this original question:

I have both a basic and an advanced feature.

I want to set it up so that if a user selects the basic they cannot also select the advanced and vice versa.

How can I accomplish this?

I am also using Spaces and context.

I was told that module_supports might be an answer.

Is this something that I can implement today.

I have both features available but if one is chosen I do not want the other to be available to the space.

Short term workaround:

I might be able to do some of this with presets. I am thinking that I setup preset 1 with calendar and preset 2 with event where calendar and event are conflicting.

Then I can just not allow the the conflicting feature in the preset.

q0rban’s picture

@SocialNicheGuru
You can already do this if both features have the same component setting. For instance, if Feature A has features[node][] = blog and Feature B has features[node][] = blog, they will conflict in the Features UI, and only one can be enabled at the same time.

You can make up your own component if you want to make the two features conflict, but keep in mind it will get wiped out whenever you update your feature:

features[foo][] = bar

socialnicheguru’s picture

@qOrban,

I want features like calendar or event to be available to let's say the administrator of the group.

but I don't want him/her to be able to select both a calendar and an event feature. I would like it to be either or.

if I do what you suggest, then I can have either feature on my site but not both.

Any insight into how i can have both available but only one chosen in a particular space?

q0rban’s picture

@SocialNicheGuru

I don't know Spaces, but I think you'll have to do some custom form alters coupled with some javascript to be able to disable the other checkbox when one is checked.

yhahn’s picture

Status: Active » Postponed

Postponed until post 1.x stable.

mpotter’s picture

Status: Postponed » Closed (won't fix)

Closing this for lack of activity. Please re-open this issue if you can reproduce it in the latest version.