function commerce_product_permission in Commerce Core 7
Implements hook_permission().
File
- modules/
product/ commerce_product.module, line 295 - Defines the core Commerce product entity, including the entity itself, the bundle definitions (product types), and various API functions to manage products and interact with them through forms and autocompletes.
Code
function commerce_product_permission() {
$permissions = array(
'administer product types' => array(
'title' => t('Administer product types'),
'description' => t('Allows users to configure product types and their fields.'),
'restrict access' => TRUE,
),
);
$permissions += commerce_entity_access_permissions('commerce_product');
return $permissions;
}