You are here

function rules_action_entity_query_property_options_list in Rules 7.2

Returns the options list for choosing a property of an entity type.

Related topics

1 string reference to 'rules_action_entity_query_property_options_list'
rules_action_entity_query_info_alter in modules/entity.eval.inc
Info alteration callback for the entity query action.

File

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

Code

function rules_action_entity_query_property_options_list(RulesAbstractPlugin $element) {
  $element->settings += array(
    'type' => NULL,
  );
  if ($element->settings['type']) {
    $properties = entity_get_all_property_info($element->settings['type']);
    return rules_extract_property($properties, 'label');
  }
}