function commerce_recurring_access in Commerce Recurring Framework 7.2
Access callback for the entity API.
Parameters
$op: The operation being performed. One of 'view', 'update', 'create', 'delete' or just 'edit' (being the same as 'create' or 'update').
null $type:
$account: The user to check for. Leave it to NULL to check for the global user.
Return value
boolean Whether access is allowed or not.
2 string references to 'commerce_recurring_access'
- commerce_recurring_entity_info in ./
commerce_recurring.module - Implements hook_entity_info().
- commerce_recurring_ui_menu in commerce_recurring_ui/
commerce_recurring_ui.module - Implements hook_menu().
File
- ./
commerce_recurring.module, line 600 - Commerce recurring module file.
Code
function commerce_recurring_access($op, $type = NULL, $account = NULL) {
return user_access('administer commerce_recurring entities', $account);
}