function rules_action_entity_createfetch_access in Rules 7.2
Custom access callback for data create and fetch action.
Related topics
1 call to rules_action_entity_createfetch_access()
- rules_action_entity_query_access in modules/
entity.rules.inc - Custom access callback for the data query action.
1 string reference to 'rules_action_entity_createfetch_access'
- rules_entity_action_info in modules/
entity.rules.inc - Implements hook_rules_action_info() on behalf of the entity module.
File
- modules/
entity.rules.inc, line 188 - General entity related rules integration.
Code
function rules_action_entity_createfetch_access(RulesAbstractPlugin $element) {
$op = $element
->getElementName() == 'entity_create' ? 'create' : 'view';
return entity_access($op, $element->settings['type']);
}