function commerce_invoice_access in Commerce Invoice 7.2
Same name and namespace in other branches
- 7 commerce_invoice.module \commerce_invoice_access()
Checks invoice access for various operations.
Parameters
string $op: The operation being performed. One of 'view', 'update', 'create' or 'delete'.
object|NULL $invoice: Optionally an invoice to check access for.
object|NULL $account: The user to check for. Leave it to NULL to check for the current user.
Return value
bool
1 string reference to 'commerce_invoice_access'
- commerce_invoice_entity_info in ./
commerce_invoice.module - Implements hook_entity_info().
File
- ./
commerce_invoice.module, line 109 - The Commerce Invoice module.
Code
function commerce_invoice_access($op, $invoice = NULL, $account = NULL) {
return commerce_entity_access($op, $invoice, $account, 'commerce_invoice');
}