@@ -37,8 +37,7 @@ |
||
| 37 | 37 | </div> |
| 38 | 38 | </div> |
| 39 | 39 | '; |
| 40 | - } |
|
| 41 | - else { |
|
| 40 | + } else { |
|
| 42 | 41 | $block['content'] = ' |
| 43 | 42 | <div class="user-header-block"> |
| 44 | 43 | <div class="uh-container"> |
@@ -32,8 +32,7 @@ |
||
| 32 | 32 | // Create a MigrateSource object. |
| 33 | 33 | if (isset($arguments['path'])) { |
| 34 | 34 | $import_path = $arguments['path']; |
| 35 | - } |
|
| 36 | - else { |
|
| 35 | + } else { |
|
| 37 | 36 | $import_path = drupal_get_path('module', 'df_tools_commerce_product') . '/import/df_tools_commerce.fpp.commerce_product.csv'; |
| 38 | 37 | } |
| 39 | 38 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -32,8 +32,7 @@ |
||
| 32 | 32 | // Create a MigrateSource object. |
| 33 | 33 | if (isset($arguments['path'])) { |
| 34 | 34 | $import_path = $arguments['path']; |
| 35 | - } |
|
| 36 | - else { |
|
| 35 | + } else { |
|
| 37 | 36 | $import_path = drupal_get_path('module', 'df_tools_commerce_product') . '/import/df_tools_commerce.fpp.commerce_product.csv'; |
| 38 | 37 | } |
| 39 | 38 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -32,8 +32,7 @@ |
||
| 32 | 32 | // Create a MigrateSource object. |
| 33 | 33 | if (isset($arguments['path'])) { |
| 34 | 34 | $import_path = $arguments['path']; |
| 35 | - } |
|
| 36 | - else { |
|
| 35 | + } else { |
|
| 37 | 36 | $import_path = drupal_get_path('module', 'df_tools_commerce_product') . '/import/df_tools_commerce.fpp.commerce_product.csv'; |
| 38 | 37 | } |
| 39 | 38 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -32,8 +32,7 @@ |
||
| 32 | 32 | // Create a MigrateSource object. |
| 33 | 33 | if (isset($arguments['path'])) { |
| 34 | 34 | $import_path = $arguments['path']; |
| 35 | - } |
|
| 36 | - else { |
|
| 35 | + } else { |
|
| 37 | 36 | $import_path = drupal_get_path('module', 'df_tools_commerce_product') . '/import/df_tools_commerce.fpp.commerce_product.csv'; |
| 38 | 37 | } |
| 39 | 38 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -32,8 +32,7 @@ |
||
| 32 | 32 | // Create a MigrateSource object. |
| 33 | 33 | if (isset($arguments['path'])) { |
| 34 | 34 | $import_path = $arguments['path']; |
| 35 | - } |
|
| 36 | - else { |
|
| 35 | + } else { |
|
| 37 | 36 | $import_path = drupal_get_path('module', 'df_tools_commerce_product') . '/import/df_tools_commerce.fpp.commerce_product.csv'; |
| 38 | 37 | } |
| 39 | 38 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -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)); |