@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * df_tools_bean.features.field_base.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * df_tools_bean.features.field_base.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_field_default_field_bases(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Code for the df_tools_bean feature. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Code for the df_tools_bean feature. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | include_once 'df_tools_bean.features.inc'; |
| 8 | 8 | |
@@ -10,11 +10,11 @@ discard block |
||
| 10 | 10 | function df_tools_menu_child_add_node($parent_path, $entity, $menu = 'main-menu') { |
| 11 | 11 | // Remove orphaned menu links if any exist. |
| 12 | 12 | $menu_info = db_select('menu_links', 'ml') |
| 13 | - ->condition('ml.link_title' , $entity->title) |
|
| 13 | + ->condition('ml.link_title', $entity->title) |
|
| 14 | 14 | ->fields('ml', array('mlid')) |
| 15 | 15 | ->execute() |
| 16 | 16 | ->fetchAll(); |
| 17 | - foreach($menu_info as $key => $value) { |
|
| 17 | + foreach ($menu_info as $key => $value) { |
|
| 18 | 18 | menu_link_delete($menu_info[$key]->mlid); |
| 19 | 19 | } |
| 20 | 20 | $parent = df_tools_menu_parent($parent_path); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | function df_tools_menu_parent($parent_path) { |
| 40 | 40 | // Get the parent menu_link mlid. |
| 41 | 41 | $parent = db_select('menu_links', 'ml') |
| 42 | - ->condition('ml.link_path' , $parent_path) |
|
| 42 | + ->condition('ml.link_path', $parent_path) |
|
| 43 | 43 | ->fields('ml', array('mlid')) |
| 44 | 44 | ->execute() |
| 45 | 45 | ->fetch(); |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Code for the Commerce Product feature. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Code for the Commerce Product feature. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | include_once 'df_tools_commerce_product.features.inc'; |
| 8 | 8 | |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $this->destination = new MigrateDestinationFieldablePanelsPanes('commerce_product'); |
| 41 | 41 | |
| 42 | 42 | $source_migration = isset($arguments['source_migration']) ? $arguments['source_migration'] : 'DemoFrameworkBaseCommerceNodes'; |
| 43 | - $this->addFieldMapping('field_commerce_product_reference', 'Product')->separator(',')->sourceMigration($source_migration);; |
|
| 43 | + $this->addFieldMapping('field_commerce_product_reference', 'Product')->separator(',')->sourceMigration($source_migration); ; |
|
| 44 | 44 | |
| 45 | 45 | $this->addFieldMapping('title', 'Title'); |
| 46 | 46 | $this->addFieldMapping('category', 'Category')->defaultValue('Reusable panes'); |
@@ -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)); |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * df_tools_commerce_product.features.field_base.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * df_tools_commerce_product.features.field_base.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_field_default_field_bases(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * df_tools_commerce_product.fieldable_panels_pane_type.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * df_tools_commerce_product.fieldable_panels_pane_type.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_default_fieldable_panels_pane_type(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * df_tools_services.views_default.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * df_tools_services.views_default.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_views_default_views(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * df_tools_services.features.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * df_tools_services.features.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_views_api(). |