Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Commit

Permalink
Add Reservoir logo.
Browse files Browse the repository at this point in the history
  • Loading branch information
burnashburn authored and wimleers committed Jun 19, 2017
1 parent b9a76d9 commit 760a7ec
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 2 deletions.
Binary file added reservoir-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
105 changes: 105 additions & 0 deletions reservoir-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions reservoir.install
Expand Up @@ -73,8 +73,8 @@ function reservoir_install() {
])->save();

// Create default content.
file_unmanaged_copy(\Drupal::root() . '/core/misc/druplicon.png', 'public://example.jpg');
$file = File::create(['uri' => 'public://example.jpg']);
file_unmanaged_copy(\Drupal::root() . '/' . drupal_get_path('profile', 'reservoir') . '/reservoir-logo.png', 'public://reservoir-logo.png');
$file = File::create(['uri' => 'public://reservoir-logo.png']);
$file->save();
$term = Term::create([
'name' => 'Camelids',
Expand All @@ -89,6 +89,8 @@ function reservoir_install() {
],
'field_image' => [
[
'alt' => 'Reservoir logo: a "pancake stack" with layers of water instead of pancakes, to reference Drupal!',
'title' => 'Reservoir logo',
'target_id' => $file->id(),
],
],
Expand Down

0 comments on commit 760a7ec

Please sign in to comment.