@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * df_tools_hero_block.features.user_permission.inc |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * df_tools_hero_block.features.user_permission.inc |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Implements hook_user_default_permissions(). |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * df_tools_hero_block.features.inc |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * df_tools_hero_block.features.inc |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Implements hook_ctools_plugin_api(). |
@@ -12,8 +12,7 @@ discard block |
||
12 | 12 | // Create a MigrateSource object. |
13 | 13 | if (isset($arguments['path'])) { |
14 | 14 | $import_path = $arguments['path']; |
15 | - } |
|
16 | - else { |
|
15 | + } else { |
|
17 | 16 | $import_path = drupal_get_path('module', 'df_tools_user') . '/import/df_tools_user.users.csv'; |
18 | 17 | } |
19 | 18 | $this->source = new MigrateSourceCSV($import_path, $this->csvcolumns(), array('header_rows' => 1)); |
@@ -68,8 +67,7 @@ discard block |
||
68 | 67 | parent::__construct($arguments); |
69 | 68 | if (isset($arguments['path'])) { |
70 | 69 | $import_path = $arguments['path']; |
71 | - } |
|
72 | - else { |
|
70 | + } else { |
|
73 | 71 | $import_path = drupal_get_path('module', 'df_tools_user') . '/import/df_tools_user.users.csv'; |
74 | 72 | } |
75 | 73 | $this->source = new MigrateSourceCSV($import_path, $this->csvcolumns(), array('header_rows' => 1)); |
@@ -21,9 +21,9 @@ discard block |
||
21 | 21 | 'category' => 'Add HTML', |
22 | 22 | 'reusable' => false, |
23 | 23 | 'uuid' => $uuid, |
24 | - 'field_raw_html' => array ( |
|
25 | - 'und' => array ( |
|
26 | - 0 => array ( |
|
24 | + 'field_raw_html' => array( |
|
25 | + 'und' => array( |
|
26 | + 0 => array( |
|
27 | 27 | 'value' => $html, |
28 | 28 | 'format' => 'raw_html', |
29 | 29 | ), |
@@ -50,16 +50,16 @@ discard block |
||
50 | 50 | 'category' => 'Add Map', |
51 | 51 | 'reusable' => false, |
52 | 52 | 'uuid' => $uuid, |
53 | - 'field_map_address' => array ( |
|
54 | - 'und' => array ( |
|
55 | - 0 => array ( |
|
53 | + 'field_map_address' => array( |
|
54 | + 'und' => array( |
|
55 | + 0 => array( |
|
56 | 56 | 'value' => $address, |
57 | 57 | ), |
58 | 58 | ), |
59 | 59 | ), |
60 | - 'field_map_information' => array ( |
|
61 | - 'und' => array ( |
|
62 | - 0 => array ( |
|
60 | + 'field_map_information' => array( |
|
61 | + 'und' => array( |
|
62 | + 0 => array( |
|
63 | 63 | 'value' => $info, |
64 | 64 | 'format' => 'full_html', |
65 | 65 | ), |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * Code for the DF Tools Slideshow feature. |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * Code for the DF Tools Slideshow feature. |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | include_once 'df_tools_slideshow.features.inc'; |
8 | 8 |
@@ -132,17 +132,17 @@ |
||
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 | } |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * df_tools_slideshow.fieldable_panels_pane_type.inc |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * df_tools_slideshow.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_slideshow.features.inc |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * df_tools_slideshow.features.inc |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Implements hook_ctools_plugin_api(). |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - * df_tools_slideshow.features.field_instance.inc |
|
5 | - */ |
|
3 | + * @file |
|
4 | + * df_tools_slideshow.features.field_instance.inc |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Implements hook_field_default_field_instances(). |
@@ -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(). |