forked from pantheon-systems/drops-7
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1597413812: Proposed release for 7.x-1.18.10 (#109)
* Update to Drupal 7.61. For more information, see https://www.drupal.org/project/drupal/releases/7.61 * Update to PHP 7.2. For details see https://pantheon.io/blog/php-72-everywhere/ * Update to Drupal 7.62. For more information, see https://www.drupal.org/project/drupal/releases/7.62 * Update to Drupal 7.63. For more information, see https://www.drupal.org/project/drupal/releases/7.63 * Update to Drupal 7.64. For more information, see https://www.drupal.org/project/drupal/releases/7.64 * Update to Drupal 7.65. For more information, see https://www.drupal.org/project/drupal/releases/7.65 * Update to Drupal 7.66. For more information, see https://www.drupal.org/project/drupal/releases/7.66 * Update to Drupal 7.67. For more information, see https://www.drupal.org/project/drupal/releases/7.67 * BUGS-2253: Remove 'Icon' from .gitignore. * Enforce HTTPS. For more info see https://pantheon.io/blog/pantheon-now-enforces-https-default-plus-really-simple-hsts * Update to Drupal 7.68. For more information, see https://www.drupal.org/project/drupal/releases/7.68 * Update to Drupal 7.69. For more information, see https://www.drupal.org/project/drupal/releases/7.69 * Update to Drupal 7.70. For more information, see https://www.drupal.org/project/drupal/releases/7.70 * Update to Drupal 7.71. For more information, see https://www.drupal.org/project/drupal/releases/7.71 * [OTTO-355] Default to Drush 8 in pantheon.upstream.yml * [OTTO-357] Add protected_web_paths to upstream * Update to Drupal 7.72. For more information, see https://www.drupal.org/project/drupal/releases/7.72 * 7.x-1.18.10 release Co-authored-by: Pantheon Automation <[email protected]> Co-authored-by: Greg Anderson <[email protected]> Co-authored-by: Greg Anderson <[email protected]> Co-authored-by: Greg Anderson <[email protected]> Co-authored-by: Jenkins <[email protected]>
- Loading branch information
1 parent
be9f243
commit db5840a
Showing
47 changed files
with
129 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
profiles/dkan/modules/dkan/dkan_periodic_updates/dkan_periodic_updates.drush.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Code for dkan_periodic_updates drush commands. | ||
*/ | ||
|
||
/** | ||
* Implements hook_drush_command(). | ||
*/ | ||
function dkan_periodic_updates_drush_command() { | ||
$commands['dkan-force-resources-update'] = array( | ||
'description' => 'Force resources from manifest to be updated.', | ||
'aliases' => array('dfru'), | ||
); | ||
|
||
return $commands; | ||
} | ||
|
||
/** | ||
* Drush command logic. | ||
*/ | ||
function drush_dkan_periodic_updates_dkan_force_resources_update() { | ||
$active = variable_get('dkan_periodic_updates_status'); | ||
if ($active) { | ||
$items = []; | ||
$file = variable_get('dkan_periodic_updates_manifest'); | ||
$file = file_load($file); | ||
// Get items from manifest. | ||
if ($file) { | ||
$handle = fopen($file->uri, 'r'); | ||
$headers = fgetcsv($handle, 0, ','); | ||
|
||
while (($data = fgetcsv($handle, 0, ",")) !== FALSE) { | ||
$resource_data = array_combine($headers, $data); | ||
$items[$resource_data['resource_id']]['file_url'] = $resource_data['file_url']; | ||
$datastore = $resource_data['import_to_datastore'] === 'Y' ? TRUE : FALSE; | ||
$items[$resource_data['resource_id']]['datastore'] = $datastore; | ||
} | ||
fclose($handle); | ||
} | ||
else { | ||
watchdog('dkan_periodic_updates', 'No manifest found.'); | ||
return []; | ||
} | ||
|
||
if (!empty($items)) { | ||
dkan_periodic_updates_execute_update($items); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.