You are here

function commerce_flat_rate_service_new in Commerce Flat Rate 7

Returns an initialized flat rate shipping service array for forms.

1 call to commerce_flat_rate_service_new()
commerce_flat_rate_menu in ./commerce_flat_rate.module
Implements hook_menu().

File

./commerce_flat_rate.module, line 239
Allows you to define any number of flat rate shipping services for customers to choose during checkout.

Code

function commerce_flat_rate_service_new() {
  return array(
    'name' => '',
    'title' => '',
    'display_title' => '',
    'description' => '',
    'rules_component' => TRUE,
    'base_rate' => array(
      'amount' => 0,
      'currency_code' => commerce_default_currency(),
      'data' => array(),
    ),
    'weight' => 1,
    'data' => array(),
    'is_new' => TRUE,
  );
}