@@ -36,7 +36,7 @@ |
||
36 | 36 | $import_path = $arguments['path']; |
37 | 37 | } |
38 | 38 | else { |
39 | - $import_path = drupal_get_path('module', 'df_tools_fpp') . '/import/df_tools_fpp.raw_html.csv'; |
|
39 | + $import_path = drupal_get_path('module', 'df_tools_fpp').'/import/df_tools_fpp.raw_html.csv'; |
|
40 | 40 | } |
41 | 41 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
42 | 42 | $this->destination = new MigrateDestinationFieldablePanelsPanes('raw_html', array('text_format' => 'raw_html')); |
@@ -31,19 +31,19 @@ |
||
31 | 31 | $path = 'misc/vertical-tabs.js'; |
32 | 32 | unset($libraries['drupal.vertical-tabs']['js'][$path]); |
33 | 33 | |
34 | - $libraries['drupal.vertical-tabs']['js'][drupal_get_path('module', 'df_tools_vertical_tabs') . '/js/df-tools-vertical-tabs.js'] = array(); |
|
34 | + $libraries['drupal.vertical-tabs']['js'][drupal_get_path('module', 'df_tools_vertical_tabs').'/js/df-tools-vertical-tabs.js'] = array(); |
|
35 | 35 | |
36 | 36 | // Replace vertical tab CSS. |
37 | 37 | $path = 'misc/vertical-tabs.css'; |
38 | 38 | unset($libraries['drupal.vertical-tabs']['css'][$path]); |
39 | 39 | |
40 | - $libraries['drupal.vertical-tabs']['css'][drupal_get_path('module', 'df_tools_vertical_tabs') . '/css/vertical-tabs.css'] = array(); |
|
41 | - $libraries['drupal.vertical-tabs']['css'][drupal_get_path('module', 'df_tools_vertical_tabs') . '/css/vertical-tabs-theme.css'] = array(); |
|
40 | + $libraries['drupal.vertical-tabs']['css'][drupal_get_path('module', 'df_tools_vertical_tabs').'/css/vertical-tabs.css'] = array(); |
|
41 | + $libraries['drupal.vertical-tabs']['css'][drupal_get_path('module', 'df_tools_vertical_tabs').'/css/vertical-tabs-theme.css'] = array(); |
|
42 | 42 | |
43 | 43 | // Add CSS to display vertical tabs on the right unless the user has toggled |
44 | 44 | // the vertical tag setting. |
45 | 45 | if (variable_get('df_tools_vertical_tabs_vertical_tabs_toggle') != TRUE) { |
46 | - $libraries['drupal.vertical-tabs']['css'][drupal_get_path('module', 'df_tools_vertical_tabs') . '/css/vertical-tabs-right.css'] = array(); |
|
46 | + $libraries['drupal.vertical-tabs']['css'][drupal_get_path('module', 'df_tools_vertical_tabs').'/css/vertical-tabs-right.css'] = array(); |
|
47 | 47 | } |
48 | 48 | } |
49 | 49 | } |
@@ -119,10 +119,10 @@ discard block |
||
119 | 119 | * Implements hook_lightning_fpp_types(). |
120 | 120 | */ |
121 | 121 | function df_tools_slideshow_lightning_fpp_types_alter(&$types) { |
122 | - $icon_path = drupal_get_path('module', 'df_tools_slideshow') . '/images/'; |
|
122 | + $icon_path = drupal_get_path('module', 'df_tools_slideshow').'/images/'; |
|
123 | 123 | $types['slideshow'] = array( |
124 | 124 | 'title' => 'slideshow', |
125 | - 'icon' => $icon_path . 'icon_slideshow.png', |
|
125 | + 'icon' => $icon_path.'icon_slideshow.png', |
|
126 | 126 | 'path' => 'slideshow', |
127 | 127 | ); |
128 | 128 | } |
@@ -132,17 +132,17 @@ discard block |
||
132 | 132 | */ |
133 | 133 | function df_tools_slideshow_form_after_build($form) { |
134 | 134 | // Make the previews for media images larger than the default media_thumbnail |
135 | - for ($i=0; $i<=max(array_keys($form['field_media'][LANGUAGE_NONE])); ++$i) { |
|
135 | + for ($i = 0; $i <= max(array_keys($form['field_media'][LANGUAGE_NONE])); ++$i) { |
|
136 | 136 | // The slick image style is provided by the slick module, and formats images to match hero proportions |
137 | 137 | // We do not currently use this image style as the default for the slideshow fpp |
138 | 138 | $form['field_media'][LANGUAGE_NONE][$i]['preview']['content']['#image_style'] = 'slick'; |
139 | 139 | } |
140 | 140 | // Remove the formatting tips for the text fields |
141 | - for ($i=0; $i<=max(array_keys($form['field_body'][LANGUAGE_NONE])); ++$i) { |
|
141 | + for ($i = 0; $i <= max(array_keys($form['field_body'][LANGUAGE_NONE])); ++$i) { |
|
142 | 142 | unset($form['field_body'][LANGUAGE_NONE][$i]['format']['help']); |
143 | 143 | unset($form['field_body'][LANGUAGE_NONE][$i]['format']['guidelines']); |
144 | 144 | } |
145 | - for ($i=0; $i<=max(array_keys($form['field_title'][LANGUAGE_NONE])); ++$i) { |
|
145 | + for ($i = 0; $i <= max(array_keys($form['field_title'][LANGUAGE_NONE])); ++$i) { |
|
146 | 146 | unset($form['field_title'][LANGUAGE_NONE][$i]['format']['help']); |
147 | 147 | unset($form['field_title'][LANGUAGE_NONE][$i]['format']['guidelines']); |
148 | 148 | } |
@@ -36,14 +36,14 @@ discard block |
||
36 | 36 | $import_path = $arguments['path']; |
37 | 37 | } |
38 | 38 | else { |
39 | - $import_path = drupal_get_path('module', 'df_tools_slideshow') . '/import/df_tools_slideshow.fpp.slideshow.csv'; |
|
39 | + $import_path = drupal_get_path('module', 'df_tools_slideshow').'/import/df_tools_slideshow.fpp.slideshow.csv'; |
|
40 | 40 | } |
41 | 41 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
42 | 42 | $this->destination = new MigrateDestinationFieldablePanelsPanes('slideshow', array('text_format' => 'raw_html')); |
43 | 43 | |
44 | 44 | $this->addFieldMapping('field_media', 'media_formatted'); |
45 | 45 | $this->addFieldMapping('field_media:file_replace')->defaultValue(FILE_EXISTS_REPLACE); |
46 | - $this->addFieldMapping('field_media:source_dir')->defaultValue(dirname($import_path) . '/images'); |
|
46 | + $this->addFieldMapping('field_media:source_dir')->defaultValue(dirname($import_path).'/images'); |
|
47 | 47 | $this->addFieldMapping('field_media:destination_file', 'filename'); |
48 | 48 | |
49 | 49 | $this->addFieldMapping('field_title', 'title_formatted'); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | if (strpos($column, 'Slide ') === 0) { |
66 | 66 | // Slide columns are in the format "Slide <index> <Field>" |
67 | 67 | $column = explode(' ', $column); |
68 | - $row->{strtolower($column[2]) . '_formatted'}[$column[1]] = $value; |
|
68 | + $row->{strtolower($column[2]).'_formatted'}[$column[1]] = $value; |
|
69 | 69 | } |
70 | 70 | } |
71 | 71 | return TRUE; |
@@ -56,7 +56,7 @@ |
||
56 | 56 | $node->revision = 1; |
57 | 57 | $node->workbench_moderation_state_new = 'draft'; |
58 | 58 | node_save($node); |
59 | - drupal_goto('/node/' . $node->nid . '/draft'); |
|
59 | + drupal_goto('/node/'.$node->nid.'/draft'); |
|
60 | 60 | } |
61 | 61 | // Return the standard workbench node edit form. |
62 | 62 | else { |
@@ -23,10 +23,10 @@ |
||
23 | 23 | MigrateDestinationNode::getKeySchema() |
24 | 24 | ); |
25 | 25 | |
26 | - $import_path = drupal_get_path('module', 'df_translate') . '/import/'; |
|
26 | + $import_path = drupal_get_path('module', 'df_translate').'/import/'; |
|
27 | 27 | |
28 | 28 | // Create a MigrateSource object. |
29 | - $this->source = new MigrateSourceCSV($import_path . 'df_translate.base.nodes.translations.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
29 | + $this->source = new MigrateSourceCSV($import_path.'df_translate.base.nodes.translations.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
30 | 30 | |
31 | 31 | $this->destination = new MigrateDestinationNode('page'); |
32 | 32 |
@@ -10,9 +10,9 @@ |
||
10 | 10 | function df_search_js_alter(&$javascript) { |
11 | 11 | // Replace the default jQuery autocomplete JS bundled with Search Autocomplete |
12 | 12 | // with a version that supports closing the autocomplete using a button. |
13 | - $path = drupal_get_path('module', 'search_autocomplete') . '/js/jquery.autocomplete.js'; |
|
13 | + $path = drupal_get_path('module', 'search_autocomplete').'/js/jquery.autocomplete.js'; |
|
14 | 14 | |
15 | 15 | if (isset($javascript[$path])) { |
16 | - drupal_add_js(drupal_get_path('module', 'df_search') . '/js/jquery.autocomplete.js'); |
|
16 | + drupal_add_js(drupal_get_path('module', 'df_search').'/js/jquery.autocomplete.js'); |
|
17 | 17 | } |
18 | 18 | } |
@@ -26,10 +26,10 @@ discard block |
||
26 | 26 | $this->destination = new MigrateDestinationEntityAPI('commerce_product', 'product'); |
27 | 27 | |
28 | 28 | // Define a default import path. |
29 | - $import_path = drupal_get_path('module', 'df_commerce') . '/import/'; |
|
29 | + $import_path = drupal_get_path('module', 'df_commerce').'/import/'; |
|
30 | 30 | |
31 | 31 | // Create a MigrateSource object. |
32 | - $this->source = new MigrateSourceCSV($import_path . 'df_commerce.base.products.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
32 | + $this->source = new MigrateSourceCSV($import_path.'df_commerce.base.products.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
33 | 33 | |
34 | 34 | $this->addFieldMapping('title', 'title'); |
35 | 35 | $this->addFieldMapping('sku', 'sku'); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | // Images |
39 | 39 | $this->addFieldMapping('field_images', 'images'); |
40 | 40 | $this->addFieldMapping('field_images:file_replace')->defaultValue(FILE_EXISTS_REPLACE); |
41 | - $this->addFieldMapping('field_images:source_dir')->defaultValue($import_path . 'images'); |
|
41 | + $this->addFieldMapping('field_images:source_dir')->defaultValue($import_path.'images'); |
|
42 | 42 | $this->addFieldMapping('field_images:destination_file', 'filename'); |
43 | 43 | |
44 | 44 | $this->addFieldMapping('uid', 'uid'); |
@@ -23,8 +23,8 @@ |
||
23 | 23 | MigrateDestinationNode::getKeySchema() |
24 | 24 | ); |
25 | 25 | |
26 | - $import_path = drupal_get_path('module', 'df_commerce') . '/import/'; |
|
27 | - $this->source = new MigrateSourceCSV($import_path . 'df_commerce.base.nodes.commerce.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
26 | + $import_path = drupal_get_path('module', 'df_commerce').'/import/'; |
|
27 | + $this->source = new MigrateSourceCSV($import_path.'df_commerce.base.nodes.commerce.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
28 | 28 | |
29 | 29 | $this->destination = new MigrateDestinationNode('commerce'); |
30 | 30 |