Skip to content

Instantly share code, notes, and snippets.

@AlexSkrypnyk
Last active September 19, 2015 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexSkrypnyk/1251560643808e456465 to your computer and use it in GitHub Desktop.
Save AlexSkrypnyk/1251560643808e456465 to your computer and use it in GitHub Desktop.
Drupal feature_banish exclude variables
<?php
/**
* Settings helpers.
*/
/**
* Configuration for features_banish's module variable features_banish_items.
*
* Returned value contains Drupal 7 config variables that are state variables.
* This may include contrib-specific variables, but should never include
* feature-specific variables. For this case, use 'feature_banish' variable in
* features's .info file.
*
* @code
* // Config for features_banish to exclude state-based vars from features export.
* $conf['features_banish_items'] = MYMODULE_banished_features();
* @endcode
*
* @return array
* Array of banished features items.
*
* @see https://www.drupal.org/project/features_banish
*/
function MYMODULE_banished_features() {
return array(
'variable' => array(
'cache_class_cache_ctools_css',
'context_block_rebuild_needed',
// Changes when cron is run.
'cron_last',
// Security: Allows for running cron.php remotely.
'cron_key',
// What install task the site is currently on.
'install_task',
// An error flag when Drupal can't talk to the internet.
'drupal_http_request_fails',
// A list css files that are being cached by drupal.
'drupal_css_cache_files',
// A list js files that are being cached by drupal.
'drupal_js_cache_files',
// Cached parent-child relationships of menu items.
'menu_masks',
// The last timestamp when module updates were checked.
'update_last_check',
// Changes each time the css and jss cache is reset.
'css_js_query_string',
// Flag when the site is in maintenance mode.
'maintenance_mode',
// Private key used to generate tokens.
'drupal_private_key',
// Cached md5 hash of features export objects.
'features_codecache',
'features_modules_changed',
// Used to avoid race conditions.
'features_semaphore',
// Cache of orphaned features.
'features_ignored_orphans',
// Install timestamp.
'install_time',
'menu_expanded',
// CTools - Last cron run timestamp.
'ctools_last_cron',
// Entity API - List of entity cache tables.
'entity_cache_tables_created',
// l10n_update - Last time translation availability was checked.
'l10n_update_last_check',
// l10n_update - Translation status of enabled modules.
'l10n_update_translation_status',
// Less dir is randomly generated on each cache clear.
'less_dir',
// Module Filter - Recent modules timestamps.
'module_filter_recent_modules',
// Module xmlsitemap - Last time the sitemap was generated.
'xmlsitemap_generated_last',
// Module xmlsitemap - Whether the sitemap needs to be regenerated.
'xmlsitemap_regenerate_needed',
'xmlsitemap_engines_submit_last',
'xmlsitemap_engines_submit_updated',
'xmlsitemap_rebuild_needed',
// Custom case - see below in taxonomy section.
'xmlsitemap_settings_taxonomy_term_companies',
'search_api_solr_last_optimize',
'shield_pass',
'shield_print',
'shield_user',
'shield_allow_cli',
),
'elysia_cron' => array(
'xmlsitemap_cron',
'xmlsitemap_engines_cron',
'xmlsitemap_menu_cron',
'xmlsitemap_taxonomy_cron',
),
'menu_custom' => array(
'devel',
'features',
'management',
'navigation',
'user-menu',
),
// Views shipped with contribs.
'views_view' => array(
'bean_blocks_overview',
'commerce_card_on_file_admin',
'commerce_card_on_file_user_cards',
'commerce_customer_profiles',
'commerce_line_item_table',
'commerce_payment_order',
'commerce_orders',
'commerce_product_revisions',
'commerce_products',
'commerce_cart_block',
'commerce_cart_form',
'commerce_cart_summary',
'commerce_user_orders',
'redirects',
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment