Disable defaults
Categories
Component ID
2004516
Component name
Disable defaults
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Features
The module provides a way to disable some hooks for specific modules via the
settings.php. So defaults of views or panels can be removed and can be exported
to a feature with the same machine name.
The module can also be used to disable other hooks, like form_alter.
A general rule for using this module: Only use it if you are aware of the
consequences!!
Example
// Disable default configurations of several modules for several hooks to remove
// them from the installation or make them exportable via features.
$conf['disable_defaults'] = array(
// Entityform shall not take full control over aliases and menu links.
'entity_presave' => array(
'entityform',
),
'flag_default_flags' => array(
'flag_abuse',
),
// We want to have all our image styles defined in our features.
'image_default_styles' => array(
'image',
'linkit',
'media',
),
// Avoid that file_entity and media override features exported file display
// settings.
'file_default_displays_alter' => array(
'image',
'media',
),
// Make default file type settings exportable via features.
'file_default_types' => array(
'file_entity',
),
// Remove the default views from contrib modules, that are not used or will be
// overwritten in features.
'views_default_views' => array(
'comment',
'content_menu',
'media',
'node',
'redirect',
'search',
'statistics',
'taxonomy',
'views_bulk_operations',
'votingapi',
),
);
