Add declarative site module

This commit is contained in:
Philip Peterson 2026-05-01 05:24:10 -07:00
parent 81fded80df
commit 8d7d667f12
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,5 @@
name: Riverside PT
type: module
description: Custom functionality for Riverside Physical Therapy.
package: Custom
core_version_requirement: ^11

View file

@ -0,0 +1,16 @@
<?php
use Drupal\node\Entity\NodeType;
function riverside_pt_install() {
$type = NodeType::create([
'type' => 'appointment',
'name' => 'Appointment',
'description' => 'A booking between a Patient and a Provider at a particular time.',
'new_revision' => FALSE,
'preview_mode' => DRUPAL_DISABLED,
'display_submitted' => FALSE,
]);
$type->save();
}