Skip to content

Instantly share code, notes, and snippets.

@derhasi
Created August 21, 2014 14:14
Show Gist options
  • Save derhasi/919432252190f88f3963 to your computer and use it in GitHub Desktop.
Save derhasi/919432252190f88f3963 to your computer and use it in GitHub Desktop.
Config for Drupal disable defaults module: https://www.drupal.org/sandbox/derhasi/2004516
<?php
// 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',
),
'node_info' => array(
'forum',
),
// Remove the default views from contrib modules, that are not used or will be
// overwritten in features.
'views_default' => array(
'admin_views',
'comment',
'content_menu',
'media',
'node',
'redirect',
'search',
'statistics',
'taxonomy',
'views_bulk_operations',
'votingapi',
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment