@@ -64,22 +64,22 @@ |
||
64 | 64 | // Generate the title |
65 | 65 | // This is the only block of code that differs from ctools_node_title_content_type_render |
66 | 66 | if (!empty($conf['link'])) { |
67 | - $content = l($node->title, 'node/' . $node->nid, array('attributes' => array('data-quickedit-field-id' => $field_id))); |
|
67 | + $content = l($node->title, 'node/'.$node->nid, array('attributes' => array('data-quickedit-field-id' => $field_id))); |
|
68 | 68 | } |
69 | 69 | else { |
70 | - $content = "<div data-quickedit-field-id=\"$field_id\">" . check_plain($node->title) . '</div>'; |
|
70 | + $content = "<div data-quickedit-field-id=\"$field_id\">".check_plain($node->title).'</div>'; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | // Build any surrounding markup if so configured |
74 | 74 | if (isset($conf['markup']) && $conf['markup'] != 'none') { |
75 | - $markup = '<' . $conf['markup']; |
|
75 | + $markup = '<'.$conf['markup']; |
|
76 | 76 | if (!empty($conf['id'])) { |
77 | - $markup .= ' id="' . $conf['id'] . '"'; |
|
77 | + $markup .= ' id="'.$conf['id'].'"'; |
|
78 | 78 | } |
79 | 79 | if (!empty($conf['class'])) { |
80 | - $markup .= ' class="' . $conf['class'] . '"'; |
|
80 | + $markup .= ' class="'.$conf['class'].'"'; |
|
81 | 81 | } |
82 | - $markup .= '>' . $content . '</' . $conf['markup'] . '>' . "\n"; |
|
82 | + $markup .= '>'.$content.'</'.$conf['markup'].'>'."\n"; |
|
83 | 83 | $content = $markup; |
84 | 84 | } |
85 | 85 |
@@ -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(); |