You are here

function commerce_checkout_permission in Commerce Core 7

Implements hook_permission().

File

modules/checkout/commerce_checkout.module, line 148
Enable checkout as a multi-step form with customizable pages and a simple checkout pane API.

Code

function commerce_checkout_permission() {
  $permissions = array(
    'administer checkout' => array(
      'title' => t('Administer checkout'),
      'description' => t('Configure checkout settings including the layout of the checkout form.'),
      'restrict access' => TRUE,
    ),
    'access checkout' => array(
      'title' => t('Access checkout'),
      'description' => t('Complete a purchase through the checkout form.'),
    ),
  );
  return $permissions;
}