function workflow_access in Workflow 7.2
Determines whether the given user has access to a Workflow entity.
Parameters
string $op: The operation being performed. One of 'view', 'update', 'create' or 'delete'.
object $entity: Entity to check access for. If no entity is given, it will be determined whether access is allowed for all entities of the given type.
object $account: The user to check for. Leave it to NULL to check for the global user.
string $entity_type: The entity type.
Return value
bool Whether access is allowed or not. If the entity type does not specify any access information, NULL is returned.
8 string references to 'workflow_access'
- workflow_access_features_api in workflow_access/
workflow_access.module - Implements hook_features_api().
- workflow_access_features_export in workflow_access/
workflow_access.features.inc - Implements hook_features_export().
- workflow_access_features_rebuild in workflow_access/
workflow_access.features.inc - Implements hook_features_rebuild().
- workflow_access_insert_workflow_access_by_sid in workflow_access/
workflow_access.module - Given data, insert into workflow access - we never update.
- workflow_access_node_access_explain in workflow_access/
workflow_access.module - Implements hook_node_access_explain().
File
- workflow_admin_ui/
workflow_admin_ui.module, line 138 - Provides administrative UI for workflow.
Code
function workflow_access($op, $entity, $account, $entity_type) {
return user_access('administer workflow', $account);
}