Skip to content

Commit

Permalink
Merge pull request #7 from Roomify/payment
Browse files Browse the repository at this point in the history
Add commerce integration with payment functionality
  • Loading branch information
acrollet authored May 18, 2018
2 parents d2c780c + b9e30fb commit 8ec5cde
Show file tree
Hide file tree
Showing 6 changed files with 744 additions and 28 deletions.
8 changes: 8 additions & 0 deletions bee.install
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ function bee_uninstall() {

Drupal::configFactory()->getEditable('field.field.node.' . $node_type->id() . '.field_open_hours')->delete();
Drupal::configFactory()->getEditable('field.field.node.' . $node_type->id() . '.field_use_open_hours')->delete();

Drupal::configFactory()->getEditable('field.field.node.' . $node_type->id() . '.field_product')->delete();
Drupal::configFactory()->getEditable('field.field.node.' . $node_type->id() . '.field_price')->delete();
Drupal::configFactory()->getEditable('field.field.node.' . $node_type->id() . '.field_price_frequency')->delete();
}

Drupal::configFactory()->getEditable('field.storage.node.field_availability_daily')->delete();
Expand All @@ -105,6 +109,10 @@ function bee_uninstall() {
Drupal::configFactory()->getEditable('field.storage.node.field_open_hours')->delete();
Drupal::configFactory()->getEditable('field.storage.node.field_use_open_hours')->delete();

Drupal::configFactory()->getEditable('field.storage.node.field_product')->delete();
Drupal::configFactory()->getEditable('field.storage.node.field_price')->delete();
Drupal::configFactory()->getEditable('field.storage.node.field_price_frequency')->delete();

$states = [
'bee_daily_available',
'bee_daily_not_available',
Expand Down
Loading

0 comments on commit 8ec5cde

Please sign in to comment.