@@ -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 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $import_path = $arguments['path']; |
29 | 29 | } |
30 | 30 | else { |
31 | - $import_path = drupal_get_path('module', 'df_tools_panelizer') . '/import/df_tools_panelizer.nodes.landing.csv'; |
|
31 | + $import_path = drupal_get_path('module', 'df_tools_panelizer').'/import/df_tools_panelizer.nodes.landing.csv'; |
|
32 | 32 | } |
33 | 33 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
34 | 34 | $this->destination = new MigrateDestinationNode('landing'); |
@@ -65,9 +65,9 @@ discard block |
||
65 | 65 | |
66 | 66 | // Loop through each UUID in this region and add a new pane for this node |
67 | 67 | foreach ($value as $uuid) { |
68 | - $pane = panels_new_pane('fieldable_panels_pane', 'uuid:' . $uuid, TRUE); |
|
68 | + $pane = panels_new_pane('fieldable_panels_pane', 'uuid:'.$uuid, TRUE); |
|
69 | 69 | // Check to see if any classy panel styles are included for this pane |
70 | - if (array_key_exists($uuid . '-style', $row) && $settings = json_decode($row->{$uuid . '-style'}, TRUE)) { |
|
70 | + if (array_key_exists($uuid.'-style', $row) && $settings = json_decode($row->{$uuid.'-style'}, TRUE)) { |
|
71 | 71 | // Add our default settings |
72 | 72 | $settings['classy_panel_styles_flag'] = 'classy-panel-styles pane'; |
73 | 73 | $pane->style = array( |
@@ -34,13 +34,13 @@ |
||
34 | 34 | $import_path = $arguments['path']; |
35 | 35 | } |
36 | 36 | else { |
37 | - $import_path = drupal_get_path('module', 'df_tools_commerce_product') . '/import/df_tools_commerce.fpp.commerce_product.csv'; |
|
37 | + $import_path = drupal_get_path('module', 'df_tools_commerce_product').'/import/df_tools_commerce.fpp.commerce_product.csv'; |
|
38 | 38 | } |
39 | 39 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
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'); |
@@ -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 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $import_path = $arguments['path']; |
15 | 15 | } |
16 | 16 | else { |
17 | - $import_path = drupal_get_path('module', 'df_tools_user') . '/import/df_tools_user.users.csv'; |
|
17 | + $import_path = drupal_get_path('module', 'df_tools_user').'/import/df_tools_user.users.csv'; |
|
18 | 18 | } |
19 | 19 | $this->source = new MigrateSourceCSV($import_path, $this->csvcolumns(), array('header_rows' => 1)); |
20 | 20 | |
@@ -70,13 +70,13 @@ discard block |
||
70 | 70 | $import_path = $arguments['path']; |
71 | 71 | } |
72 | 72 | else { |
73 | - $import_path = drupal_get_path('module', 'df_tools_user') . '/import/df_tools_user.users.csv'; |
|
73 | + $import_path = drupal_get_path('module', 'df_tools_user').'/import/df_tools_user.users.csv'; |
|
74 | 74 | } |
75 | 75 | $this->source = new MigrateSourceCSV($import_path, $this->csvcolumns(), array('header_rows' => 1)); |
76 | 76 | |
77 | 77 | // Get the base path, which is where we assume /images is located |
78 | 78 | $base_path = dirname($import_path); |
79 | - $this->addFieldMapping('source_dir')->defaultValue($base_path . '/images'); |
|
79 | + $this->addFieldMapping('source_dir')->defaultValue($base_path.'/images'); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | function csvcolumns() { |
@@ -10,18 +10,18 @@ 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); |
21 | 21 | // Add the new menu link. |
22 | 22 | $link = array( |
23 | 23 | 'menu_name' => $menu, |
24 | - 'link_path' => 'node/' . $entity->nid, |
|
24 | + 'link_path' => 'node/'.$entity->nid, |
|
25 | 25 | 'router_path' => 'node/%', |
26 | 26 | 'link_title' => $entity->title, |
27 | 27 | 'module' => 'menu', |
@@ -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(); |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | $css = ''; |
53 | 53 | foreach ($colors as $color) { |
54 | 54 | foreach ($color[1] as $rule) { |
55 | - $new_css = $rule[0] . '{' . $rule[1] . ':' . $color[0] . '}'; |
|
55 | + $new_css = $rule[0].'{'.$rule[1].':'.$color[0].'}'; |
|
56 | 56 | // Add an extra wrapper for media queries |
57 | 57 | if (isset($rule[2])) { |
58 | - $new_css = $rule[2] . '{' . $new_css . '}'; |
|
58 | + $new_css = $rule[2].'{'.$new_css.'}'; |
|
59 | 59 | } |
60 | 60 | $css .= $new_css; |
61 | 61 | } |
@@ -170,15 +170,15 @@ discard block |
||
170 | 170 | ), |
171 | 171 | '#attached' => array( |
172 | 172 | 'js' => array( |
173 | - libraries_get_path('css.js') . '/css.js', |
|
174 | - libraries_get_path('spectrum') . '/spectrum.js', |
|
175 | - libraries_get_path('html2canvas') . '/dist/html2canvas.min.js', |
|
176 | - libraries_get_path('color-thief') . '/src/color-thief.js', |
|
177 | - $path . '/js/df_tools_color.js' |
|
173 | + libraries_get_path('css.js').'/css.js', |
|
174 | + libraries_get_path('spectrum').'/spectrum.js', |
|
175 | + libraries_get_path('html2canvas').'/dist/html2canvas.min.js', |
|
176 | + libraries_get_path('color-thief').'/src/color-thief.js', |
|
177 | + $path.'/js/df_tools_color.js' |
|
178 | 178 | ), |
179 | 179 | 'css' => array( |
180 | - libraries_get_path('spectrum') . '/spectrum.css', |
|
181 | - $path . '/css/df_tools_color.css' |
|
180 | + libraries_get_path('spectrum').'/spectrum.css', |
|
181 | + $path.'/css/df_tools_color.css' |
|
182 | 182 | ), |
183 | 183 | ), |
184 | 184 | '#weight' => 200, |