function commerce_line_item_permission in Commerce Core 7
Implements hook_permission().
File
- modules/
line_item/ commerce_line_item.module, line 328 - Defines the core Commerce line item entity and API functions interact with line items on orders.
Code
function commerce_line_item_permission() {
$permissions = array(
'administer line item types' => array(
'title' => t('Administer line item types'),
'description' => t('View and configure fields attached to module defined line item types.'),
'restrict access' => TRUE,
),
'administer line items' => array(
'title' => t('Administer line items'),
'description' => t('Update and delete any line item on the site.'),
'restrict access' => TRUE,
),
);
return $permissions;
}