Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

#1251928 Don't deal with configuration entities.

  • Loading branch information...
commit e1c5f91ed8677945d73d97fb0503c4058900a57e 1 parent 68df0dd
Wolfgang Ziegler authored August 17, 2011

Showing 1 changed file with 6 additions and 2 deletions. Show diff stats Hide diff stats

  1. 8  modules/entity.rules.inc
8  modules/entity.rules.inc
@@ -273,13 +273,17 @@ function rules_entity_action_type_options($element, $name = NULL) {
273 273
 
274 274
 /**
275 275
  * Returns options containing entity types having the given key set in the info.
  276
+ *
  277
+ * Additionally, we exclude all entity types that are marked as configuration.
276 278
  */
277 279
 function rules_entity_type_options($key = NULL) {
278 280
   $info = entity_get_info();
279 281
   $types = array();
280 282
   foreach ($info as $type => $entity_info) {
281  
-    if (!isset($key) || entity_type_supports($type, $key)) {
282  
-      $types[$type] = $entity_info['label'];
  283
+    if (empty($entity_info['configuration']) && empty($entity_info['exportable'])) {
  284
+      if (!isset($key) || entity_type_supports($type, $key)) {
  285
+        $types[$type] = $entity_info['label'];
  286
+      }
283 287
     }
284 288
   }
285 289
   return $types;

0 notes on commit e1c5f91

Please sign in to comment.
Something went wrong with that request. Please try again.