Questions tagged [features]

Use it for questions about the module used by site developers to export elements of a site configuration to use them in another site.

Filter by
Sorted by
Tagged with
19
votes
2answers
1k views

How to use the Features module in a 3 dev environnement?

Working on a project, making heavy use of Features, there is sometimes 3 devs for this application. We have tried a few approaches, but when we merge our git branches it seems we often 'over-write'...
21
votes
8answers
14k views

Revert a Feature Component programmatically

I have a Feature installed using an Installation Profile. But I always have to go and Revert a particular Component so that it's no longer Overridden (so that, for example, the Feature's Blocks appear)...
4
votes
1answer
4k views

Remove features without lose functionality

I'm working on a project where in the past was added a lot of features and was did in a way where right now a lot of them has a lot of circular dependencies and conflicts. I want to start again, ...
15
votes
1answer
490 views

When using features to manage deployment, should I break my functionality into many little features or one big feature?

I'm relatively new to the features module and I've read contradictory recommendations online regarding whether it's easiest to maintain A) one big feature or B) several smaller features and then a "...
16
votes
3answers
10k views

How do I resolve this conflict between two Feature modules?

I have two content types with various menus, views, menus, etc. which I have packaged as two Feature custom modules. The two content types both use a taxonomy and use several of the same fields in ...
24
votes
5answers
8k views

Unable to delete feature content type after uninstalling feature

Issue Uninstalling a feature which creates a content type hides the "Delete" link on the admin/structure/types. Issue on Drupal.org
14
votes
1answer
12k views

Export content types using features [closed]

I am struggling with it, but I can't do it by myself. Google doesn't gave me links for tutorials other modules doesn't help me too. I would like to export content types definition from Drupal site to ...
7
votes
4answers
3k views

cannot track view with features

I'm using Features to create a feature called foo which tracks content types and views so they can be described in code, committed to my repository and eventually pushed into the staging and ...
4
votes
0answers
962 views

Difference between using features, strongarm & ctools exportable api [closed]

Whats the difference between using features, strongarm or the ctools export api to export config settings? I cannot use the features modules so I need to find an alternative because its not part of ...
2
votes
2answers
53 views

Use feature as module?

Does anyone have experience with using a feature as a module? The usage I am talking about is strictly placing hooks inside the .module file. Can that trigger any sort of bug?
41
votes
1answer
997 views

I need to bring a site to version control, and set up the continuous Integration environment

I am an entrepreneur with a Drupal 6x project that started small enough to not need version control (per developers), but now I am convinced there is no way without it. There's extensive documentation ...
14
votes
4answers
3k views

Features workflow issue with deleting a field

Suppose I have a content type Person with fields: Name, Age, Email This content type is controlled by a Feature called test so I can source control it and push it to the live site. My workflow goes ...
7
votes
2answers
6k views

Export content in features using UUID features

I read the UUID feature description and it says it is used to export content in feature. I installed the module but did not know how to export the content.
3
votes
1answer
661 views

What are the alternatives to Features module in Drupal 8 [closed]

I am trying to export configurations from one Drupal site to other. This is not a one time operation, I will need to do this multiple times and Single Import, Simple Export is not an option as there ...
6
votes
1answer
2k views

How does one change the machine name of a Feature?

I have created a feature with a typo in the machine name. I've tried just search/replacing instances of the misspelling with the proper spelling in all files within the feature's directory, but when I ...
5
votes
2answers
2k views

How can I manage site translations in code?

I have a site with multiple translations, including a heavily customized version of the default Drupal "English." (The use case requires that a lot of the help text and labels throughout Drupal be ...
3
votes
2answers
10k views

How to run cron more often than every hour?

I'd like to run cron every 5 minutes, but the UI doesn't offer any increment of time smaller than an hour. I'm assuming the solution is as simple as creating a feature module for the setting, and ...
3
votes
5answers
802 views

How to make a Feature available only to certain Spaces?

For a Drupal 6 Open Atrium site (i.e., Features, Spaces, Organic Groups) I'm running, I've created some custom Features that only really apply to a handful of the hundreds of groups on the site. As ...
3
votes
1answer
2k views

How to create content type programmatically with fields and vertical tabs

I'm creating a module using Drupal7.26 and want to create content type with different type of fields like radio/checkboxes/drupdown and textfields. I'm following the last comment by Jason Gray in THIS ...
5
votes
1answer
359 views

.inc files in Features - how are they being included?

Regarding the features module: I am working with a module which was created by features. I see a lot of .inc files in the module, but see very few actually included. Does this make any sense? I know ...
3
votes
1answer
657 views

New Relic performance monitoring and the Features Module

We've just started using New Relic to monitor our D6 sites, and are also taking advantage of New Relic's ability to report on Drupal module performance. Our sites contain several modules with ...
3
votes
3answers
201 views

User roles and keeping their IDs when using features

I have defined some user roles and I'm assigning them to users through the rules module. I have created a feature with the rules and the roles and moved them to another site. My problem is that the ...
3
votes
2answers
907 views

How to integrate custom code into a “Features” feature

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 ...
2
votes
1answer
2k views

Exporting settings in a code with Features / Strongarm - how to detect right variables - config ones

Many modules does not support Features, so I need Strongarm module to export config in the code. But in situation where i have many contrib modules, it seems tedious work. not all variables are named ...
1
vote
0answers
877 views

How to export CKeditor with Features

I am using CKeditor and I would like to be able to export my configuration with Features. I find that I am able to put all my CKeditor profiles into a Features module. All the settings are stored in ...
8
votes
1answer
6k views

How can I use the UUID API?

I am aware that the question is (almost) a duplicate of the following question #21991, which has been posted back in 2012. But that question is NOT related to Drupal 8, where UUID is in core. ...
5
votes
6answers
4k views

Enable new modules dependencies on deploy

How can I automatically enable new dependency added on a custom feature (or standard modules) with drush? After getting the new code, my deployment script basically run: drush cc all drush fra But ...
2
votes
1answer
196 views

Is it possible to export arbitrary configurations?

I'm trying to create feature modules for as much as possible, such as my backup schedule (for the Backup & Migrate module) my shortcut sets etc. etc. and I'm surprised how much can't be exported ...
2
votes
3answers
2k views

How to export custom entity using Features?

I am trying to export custom entity using Features module but I am not able to see anything under create features. I have enabled exportable as TRUE in hook_entity_info. I have already added ...
1
vote
1answer
124 views

How do I add a view with a module when installing a module?

In Drupal 8, I want a view to be created when a module is installed. I have already used the Features module to export the view, so I have the yml file that creates the view. I can't find what to ...
1
vote
3answers
339 views

Views display settings are in the database but don't show up in views UI

I'm trying to create a copy of a live site and use it as a test site, but am having trouble with views. There's a view whose settings are in the database but don't show up correctly in the views UI. ...
1
vote
1answer
2k views

The “X” plugin does not exist

I've exported features in a multisite setup in site A, which I now want to import into site B. Though, I keep getting errors like: The "entity_embed" plugin does not exist The "bef" plugin does not ...
0
votes
1answer
120 views

Does hitting 'recreate' recreate the feature from the site's elements, or vice versa?

Does hitting 'recreate' recreate the feature from the site's elements, or vice versa? I tried hard looking to this in the documentation, but I couldn't find a clear explanation.
0
votes
4answers
3k views

Export blocks with features extra

I installed the Features extra module to export custom made blocks in my Drupal 7 environment. But for some reason, it doesn't work... What I do is the following: I create a custom block I give ...
0
votes
1answer
231 views

Simpletest: database exception during setUp

I'm writing lots and lots of test cases for different modules and have come across a rather strange error about which I'm hoping others may have more insight. In my setUp function override, the first ...