function commerce_bpc_setting_defaults in Commerce Bulk Product Creation 7
Same name and namespace in other branches
- 7.2 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 14 - Helper functions for settings-related functionality.
Code
function commerce_bpc_setting_defaults() {
$settings = array();
// 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' => ', ',
);
// Defaults for display node creation.
$settings['display'] = array(
'creation_method' => 'wizard',
'auto_content_type' => NULL,
'auto_node_title_pattern' => '[bulk_defaults:entered_title]',
'auto_redirect' => 'product_listing',
'auto_redirect_custom' => NULL,
);
return $settings;
}