You are here

function commerce_customer_permission in Commerce Core 7

Implements hook_permission().

File

modules/customer/commerce_customer.module, line 360
Defines the customer profile entity and API functions to manage customers and interact with them.

Code

function commerce_customer_permission() {
  $permissions = array(
    'administer customer profile types' => array(
      'title' => t('Administer customer profile types'),
      'description' => t('Allows users to add customer profile types and configure their fields.'),
      'restrict access' => TRUE,
    ),
  );
  $permissions += commerce_entity_access_permissions('commerce_customer_profile');
  return $permissions;
}