Default config is a way of using the Features exports for permissions and roles to provide default settings for installations profiles. This is necessary since using Features directly forces the user to work only with the specified users and roles. This is a good thing in many cases, when you for instance create sites, but when you create distributions this is not really a viable option, since you don't want to lock in your users to one configuration, but you do want to provide sane defaults that works for most of them.

The future

There are some issues in the features issue queue that might make this module obsolete. We will try to actively work in that direction in order to not have to have this functionality into another project.

Usage

This module does not provide it's own UI for exporting configuration, instead it uses the export from Features. In order to get default config to manage your permissions and roles, export your configuration as you would normally do, and then go into your export file, for instance yourfeature.features.user_permission.inc and change the hook function defintion from:

<?php
function yourfeature_user_default_permissions() {
}
?>

to:

<?php
function yourfeature_defaultconfig_user_default_permissions() {
}
?>

After doing that, go into your info file and remove and remove your permissions from your feature file.

Project Information

Downloads