@@ -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 | ), |
@@ -34,8 +34,7 @@ |
||
| 34 | 34 | // Create a MigrateSource object. |
| 35 | 35 | if (isset($arguments['path'])) { |
| 36 | 36 | $import_path = $arguments['path']; |
| 37 | - } |
|
| 38 | - else { |
|
| 37 | + } else { |
|
| 39 | 38 | $import_path = drupal_get_path('module', 'df_tools_fpp') . '/import/df_tools_fpp.raw_html.csv'; |
| 40 | 39 | } |
| 41 | 40 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -34,8 +34,7 @@ |
||
| 34 | 34 | // Create a MigrateSource object. |
| 35 | 35 | if (isset($arguments['path'])) { |
| 36 | 36 | $import_path = $arguments['path']; |
| 37 | - } |
|
| 38 | - else { |
|
| 37 | + } else { |
|
| 39 | 38 | $import_path = drupal_get_path('module', 'df_tools_fpp') . '/import/df_tools_fpp.text.csv'; |
| 40 | 39 | } |
| 41 | 40 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -26,8 +26,7 @@ |
||
| 26 | 26 | // Create a MigrateSource object. |
| 27 | 27 | if (isset($arguments['path'])) { |
| 28 | 28 | $import_path = $arguments['path']; |
| 29 | - } |
|
| 30 | - else { |
|
| 29 | + } else { |
|
| 31 | 30 | $import_path = drupal_get_path('module', 'df_tools_panelizer') . '/import/df_tools_panelizer.nodes.landing.csv'; |
| 32 | 31 | } |
| 33 | 32 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -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(). |
@@ -34,8 +34,7 @@ |
||
| 34 | 34 | // Create a MigrateSource object. |
| 35 | 35 | if (isset($arguments['path'])) { |
| 36 | 36 | $import_path = $arguments['path']; |
| 37 | - } |
|
| 38 | - else { |
|
| 37 | + } else { |
|
| 39 | 38 | $import_path = drupal_get_path('module', 'df_tools_slideshow') . '/import/df_tools_slideshow.fpp.slideshow.csv'; |
| 40 | 39 | } |
| 41 | 40 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -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(). |