@@ -111,8 +111,12 @@ discard block |
||
111 | 111 | $modules = system_rebuild_module_data(); |
112 | 112 | foreach ($modules as $index => $module) { |
113 | 113 | // Process only modules that are Scenarios and are not enabled. |
114 | - if ($module->info['package'] != 'Demo Framework Scenarios') continue; |
|
115 | - if ($module->status) continue; |
|
114 | + if ($module->info['package'] != 'Demo Framework Scenarios') { |
|
115 | + continue; |
|
116 | + } |
|
117 | + if ($module->status) { |
|
118 | + continue; |
|
119 | + } |
|
116 | 120 | |
117 | 121 | // Functionality taken from _advanced_help_parse_ini(). |
118 | 122 | $module_path = drupal_get_path('module', $module->name); |
@@ -282,8 +286,7 @@ discard block |
||
282 | 286 | $bundle = NULL; |
283 | 287 | if (isset($entity->type)) { |
284 | 288 | $bundle = $entity->type; |
285 | - } |
|
286 | - else if (isset($entity->bundle)) { |
|
289 | + } else if (isset($entity->bundle)) { |
|
287 | 290 | $bundle = $entity->bundle; |
288 | 291 | } |
289 | 292 | $fields = array_keys(field_info_instances($type, $bundle)); |