@@ -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)); |
@@ -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')); |
@@ -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)); |
@@ -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.text.csv'; |
|
| 39 | + $import_path = drupal_get_path('module', 'df_tools_fpp').'/import/df_tools_fpp.text.csv'; |
|
| 40 | 40 | } |
| 41 | 41 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
| 42 | 42 | $this->destination = new MigrateDestinationFieldablePanelsPanes('text', array('text_format' => 'full_html')); |
@@ -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)); |
@@ -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,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)); |
@@ -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; |
@@ -32,8 +32,7 @@ |
||
| 32 | 32 | // Create a MigrateSource object. |
| 33 | 33 | if (isset($arguments['path'])) { |
| 34 | 34 | $import_path = $arguments['path']; |
| 35 | - } |
|
| 36 | - else { |
|
| 35 | + } else { |
|
| 37 | 36 | $import_path = drupal_get_path('module', 'df_tools_commerce_product') . '/import/df_tools_commerce.fpp.commerce_product.csv'; |
| 38 | 37 | } |
| 39 | 38 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -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'); |
@@ -63,8 +63,7 @@ |
||
| 63 | 63 | 'title' => render($form['actions'][$key]), |
| 64 | 64 | 'html' => TRUE |
| 65 | 65 | ); |
| 66 | - } |
|
| 67 | - else { |
|
| 66 | + } else { |
|
| 68 | 67 | $button_1[$key] = array( |
| 69 | 68 | 'title' => render($form['actions'][$key]), |
| 70 | 69 | 'html' => TRUE |
@@ -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 | } |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | $import_path = drupal_get_path('module', 'dfs_wem') . '/import/'; |
| 67 | 67 | $this->source = new MigrateSourceCSV($import_path . 'dfs_wem.nodes.wem_news.csv', $this->csvcolumns(), array('header_rows' => 1)); |
| 68 | 68 | $this->addFieldMapping('value', 'video'); |
| 69 | - } |
|
| 69 | + } |
|
| 70 | 70 | |
| 71 | 71 | function csvcolumns() { |
| 72 | 72 | $columns[3] = array('video', 'Video'); |
@@ -10,14 +10,14 @@ discard block |
||
| 10 | 10 | public function __construct($arguments) { |
| 11 | 11 | parent::__construct($arguments); |
| 12 | 12 | $this->description = t('Import nodes.'); |
| 13 | - $import_path = drupal_get_path('module', 'dfs_wem') . '/import/'; |
|
| 13 | + $import_path = drupal_get_path('module', 'dfs_wem').'/import/'; |
|
| 14 | 14 | // Create a MigrateSource object. |
| 15 | - $this->source = new MigrateSourceCSV($import_path . 'dfs_wem.nodes.wem_news.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
| 15 | + $this->source = new MigrateSourceCSV($import_path.'dfs_wem.nodes.wem_news.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
| 16 | 16 | $this->destination = new MigrateDestinationNode('wem_news'); |
| 17 | 17 | // Image |
| 18 | 18 | $this->addFieldMapping('field_wem_image', 'image'); |
| 19 | 19 | $this->addFieldMapping('field_wem_image:file_replace')->defaultValue(FILE_EXISTS_REPLACE); |
| 20 | - $this->addFieldMapping('field_wem_image:source_dir')->defaultValue($import_path . 'images'); |
|
| 20 | + $this->addFieldMapping('field_wem_image:source_dir')->defaultValue($import_path.'images'); |
|
| 21 | 21 | $this->addFieldMapping('field_wem_image:destination_file', 'filename'); |
| 22 | 22 | // Video |
| 23 | 23 | $this->addFieldMapping('field_wem_video', 'video')->sourceMigration('DFSWEMNewsVideo'); |
@@ -63,8 +63,8 @@ discard block |
||
| 63 | 63 | MigrateDestinationFile::getKeySchema() |
| 64 | 64 | ); |
| 65 | 65 | $this->destination = new MigrateDestinationFile('video', 'MigrateExtrasFileYoutube'); |
| 66 | - $import_path = drupal_get_path('module', 'dfs_wem') . '/import/'; |
|
| 67 | - $this->source = new MigrateSourceCSV($import_path . 'dfs_wem.nodes.wem_news.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
| 66 | + $import_path = drupal_get_path('module', 'dfs_wem').'/import/'; |
|
| 67 | + $this->source = new MigrateSourceCSV($import_path.'dfs_wem.nodes.wem_news.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
| 68 | 68 | $this->addFieldMapping('value', 'video'); |
| 69 | 69 | } |
| 70 | 70 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Implements of hook_menu() |
| 5 | 5 | */ |
| 6 | -function dfs_med_base_menu(){ |
|
| 6 | +function dfs_med_base_menu() { |
|
| 7 | 7 | $items['empty-page'] = array( |
| 8 | 8 | 'title' => 'Redirect', |
| 9 | 9 | 'description' => 'Redirect user.', |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | </div> |
| 38 | 38 | </div> |
| 39 | 39 | '; |
| 40 | - } |
|
| 41 | - else { |
|
| 40 | + } else { |
|
| 42 | 41 | $block['content'] = ' |
| 43 | 42 | <div class="user-header-block"> |
| 44 | 43 | <div class="uh-container"> |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $block['content'] = ' |
| 25 | 25 | <div class="user-header-block"> |
| 26 | 26 | <div class="uh-container"> |
| 27 | - <a data-dropdown="drop1" class="user-name med-user parent">' . $user->name . '</a> |
|
| 27 | + <a data-dropdown="drop1" class="user-name med-user parent">' . $user->name.'</a> |
|
| 28 | 28 | <ul id="drop1" class="f-dropdown" data-dropdown-content> |
| 29 | 29 | <li class="dropdown"><a href="/user">My Profile</a> |
| 30 | 30 | </li> |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | </ul> |
| 34 | 34 | </div> |
| 35 | 35 | <div class="uh-container"> |
| 36 | - | <a class="shows" href="/user/' . $user->uid . '/my-shows">My Shows</a> |
|
| 36 | + | <a class="shows" href="/user/' . $user->uid.'/my-shows">My Shows</a> |
|
| 37 | 37 | </div> |
| 38 | 38 | </div> |
| 39 | 39 | '; |