@@ -10,14 +10,14 @@ |
||
10 | 10 | public function __construct($arguments) { |
11 | 11 | parent::__construct($arguments); |
12 | 12 | $this->description = t('Import node translations.'); |
13 | - $import_path = drupal_get_path('module', 'dfs_wem') . '/import/'; |
|
13 | + $import_path = drupal_get_path('module', 'dfs_wem').'/import/'; |
|
14 | 14 | // Create a MigrateSource object. |
15 | - $this->source = new MigrateSourceCSV($import_path . 'dfs_wem.nodes.wem_news.translations.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
15 | + $this->source = new MigrateSourceCSV($import_path.'dfs_wem.nodes.wem_news.translations.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
16 | 16 | $this->destination = new MigrateDestinationNode('wem_news'); |
17 | 17 | // Image |
18 | 18 | $this->addFieldMapping('field_wem_image', 'image'); |
19 | 19 | $this->addFieldMapping('field_wem_image:file_replace')->defaultValue(FILE_EXISTS_REPLACE); |
20 | - $this->addFieldMapping('field_wem_image:source_dir')->defaultValue($import_path . 'images'); |
|
20 | + $this->addFieldMapping('field_wem_image:source_dir')->defaultValue($import_path.'images'); |
|
21 | 21 | $this->addFieldMapping('field_wem_image:destination_file', 'filename'); |
22 | 22 | // Video |
23 | 23 | $this->addFieldMapping('field_wem_video', 'video')->sourceMigration('DFSWEMNewsVideo'); |
@@ -21,8 +21,8 @@ |
||
21 | 21 | ); |
22 | 22 | $this->description = t('Import translated WEM Commerce product nodes.'); |
23 | 23 | $this->dependencies = array('DFSWEMProducts'); |
24 | - $import_path = drupal_get_path('module', 'dfs_wem') . '/import/'; |
|
25 | - $this->source = new MigrateSourceCSV($import_path . 'dfs_wem.nodes.wem_commerce.translations.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
24 | + $import_path = drupal_get_path('module', 'dfs_wem').'/import/'; |
|
25 | + $this->source = new MigrateSourceCSV($import_path.'dfs_wem.nodes.wem_commerce.translations.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
26 | 26 | $this->destination = new MigrateDestinationNode('wem_commerce'); |
27 | 27 | // Commerce |
28 | 28 | $this->addFieldMapping('field_wem_product_ref', 'skus'); |
@@ -17,5 +17,5 @@ |
||
17 | 17 | * Implements hook_form_FORM_ID_alter(). |
18 | 18 | */ |
19 | 19 | function df_tools_styles_form_panels_edit_style_type_form_alter(&$form, &$form_state, $form_id) { |
20 | - $form['style']['#options']['classy_panel_styles:cps_default'] = variable_get('site_name', 'DF Tools') . ' Styles'; |
|
20 | + $form['style']['#options']['classy_panel_styles:cps_default'] = variable_get('site_name', 'DF Tools').' Styles'; |
|
21 | 21 | } |
@@ -107,7 +107,7 @@ |
||
107 | 107 | $style = new stdClass(); |
108 | 108 | $style->disabled = FALSE; /* Edit this to true to make a default style disabled initially */ |
109 | 109 | $style->api_version = 1; |
110 | - $style->name = 'df_tools_styles_' . $name; |
|
110 | + $style->name = 'df_tools_styles_'.$name; |
|
111 | 111 | $style->visibility = 1; |
112 | 112 | $style->groups = serialize(array('df_tools_styles')); |
113 | 113 | $style->title = $title; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | function df_tools_bean_bean_types() { |
20 | 20 | $plugins = array(); |
21 | - $plugin_path = drupal_get_path('module', 'df_tools_bean') . '/plugins'; |
|
21 | + $plugin_path = drupal_get_path('module', 'df_tools_bean').'/plugins'; |
|
22 | 22 | $plugins['df_bean_personalized_content'] = array( |
23 | 23 | 'label' => t('Personalized Content'), |
24 | 24 | 'description' => t('A block used for personalization and testing.'), |
@@ -10,10 +10,10 @@ |
||
10 | 10 | * Implements hook_lightning_fpp_types_alter(). |
11 | 11 | */ |
12 | 12 | function df_tools_webform_lightning_fpp_types_alter(&$types) { |
13 | - $icon_path = drupal_get_path('module', 'df_tools_webform') . '/images/'; |
|
13 | + $icon_path = drupal_get_path('module', 'df_tools_webform').'/images/'; |
|
14 | 14 | $types['web_form'] = array( |
15 | 15 | 'title' => 'Webform', |
16 | - 'icon' => $icon_path . 'icon_form.png', |
|
16 | + 'icon' => $icon_path.'icon_form.png', |
|
17 | 17 | 'path' => 'web-form', |
18 | 18 | ); |
19 | 19 | } |
@@ -23,10 +23,10 @@ |
||
23 | 23 | MigrateDestinationNode::getKeySchema() |
24 | 24 | ); |
25 | 25 | |
26 | - $import_path = drupal_get_path('module', 'df_tools_og') . '/import/'; |
|
26 | + $import_path = drupal_get_path('module', 'df_tools_og').'/import/'; |
|
27 | 27 | |
28 | 28 | // Create a MigrateSource object. |
29 | - $this->source = new MigrateSourceCSV($import_path . 'df_tools_og.base.nodes.group.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
29 | + $this->source = new MigrateSourceCSV($import_path.'df_tools_og.base.nodes.group.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
30 | 30 | |
31 | 31 | $this->destination = new MigrateDestinationNode('organic_group'); |
32 | 32 |
@@ -22,8 +22,8 @@ |
||
22 | 22 | |
23 | 23 | $this->dependencies = array('DemoFrameworkBaseNodesGroup', 'ImportBaseUsers'); |
24 | 24 | |
25 | - $import_path = drupal_get_path('module', 'df_tools_og') . '/import/'; |
|
26 | - $this->source = new MigrateSourceCSV($import_path . 'df_tools_og.base.groups.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
25 | + $import_path = drupal_get_path('module', 'df_tools_og').'/import/'; |
|
26 | + $this->source = new MigrateSourceCSV($import_path.'df_tools_og.base.groups.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
27 | 27 | $this->destination = new MigrateDestinationOGMembership(); |
28 | 28 | |
29 | 29 | // Group |
@@ -10,10 +10,10 @@ |
||
10 | 10 | * Implements hook_lightning_fpp_types_alter(). |
11 | 11 | */ |
12 | 12 | function df_tools_commerce_product_lightning_fpp_types_alter(&$types) { |
13 | - $icon_path = drupal_get_path('module', 'df_tools_commerce') . '/images/'; |
|
13 | + $icon_path = drupal_get_path('module', 'df_tools_commerce').'/images/'; |
|
14 | 14 | $types['commerce_product'] = array( |
15 | 15 | 'title' => 'Commerce Product', |
16 | - 'icon' => $icon_path . 'icon_form.png', |
|
16 | + 'icon' => $icon_path.'icon_form.png', |
|
17 | 17 | 'path' => 'commerce-product', |
18 | 18 | ); |
19 | 19 | } |