function tmgmt_job_item_access in Translation Management Tool 7
Access callback for the job item entity.
Parameters
$op: The operation being performed.
$item: (Optional) A TMGMTJobItem entity to check access for. If no entity is given, it will be determined whether access is allowed for all entities.
$account: (Optional) The user to check for. Leave it to NULL to check for the global user.
Return value
boolean TRUE if access is allowed, FALSE otherwise.
Related topics
1 call to tmgmt_job_item_access()
- tmgmt_job_item_review_access in ./
tmgmt.module - Access callback wrapper for reviewing a job item entity.
1 string reference to 'tmgmt_job_item_access'
- tmgmt_entity_info in ./
tmgmt.module - Implements hook_entity_info().
File
- ./
tmgmt.module, line 642 - Main module file for the Translation Management module.
Code
function tmgmt_job_item_access($op, TMGMTJobItem $item = NULL, $account = NULL) {
// There are no item specific permissions yet.
return tmgmt_job_access($op, $item ? $item
->getJob() : NULL, $account);
}