You are here

function rules_condition_entity_field_access_op_options in Rules 7.2

Returns options for choosing a field_access() operation.

Related topics

1 string reference to 'rules_condition_entity_field_access_op_options'
rules_entity_condition_info in modules/entity.rules.inc
Implements hook_rules_condition_info() on behalf of the entity module.

File

modules/entity.rules.inc, line 479
General entity related rules integration.

Code

function rules_condition_entity_field_access_op_options(RulesAbstractPlugin $element) {
  return array(
    'view' => t('View'),
    'edit' => t('Edit'),
  );
}