You are here

function commerce_bpc_setting_defaults in Commerce Bulk Product Creation 7.2

Same name and namespace in other branches
  1. 7 commerce_bpc.settings.inc \commerce_bpc_setting_defaults()

Returns default values for all commerce_bpc settings.

Return value

array An array keyed by settings-group labels, whose values are arrays whose key/value pairs specify default values for the settings in this group.

1 call to commerce_bpc_setting_defaults()
commerce_bpc_setting in ./commerce_bpc.settings.inc
Retrieves a value form the variable table.

File

./commerce_bpc.settings.inc, line 13
Helper functions for settings-related functionality.

Code

function commerce_bpc_setting_defaults() {
  $settings = module_invoke_all('commerce_bpc_setting_defaults');

  // Defaults for patterns.
  $settings['default'] = array(
    'sku_pattern' => '[bulk_defaults:entered_sku]--[bulk_defaults:combination_values]',
    'sku_separator' => '-',
    'title_pattern' => '[bulk_defaults:entered_title] ([bulk_defaults:combination_labels])',
    'title_separator' => ', ',
  );
  return $settings;
}