customer-riverside/web/modules/custom/riverside_pt/riverside_pt.install

17 lines
394 B
Text
Raw Normal View History

2026-05-01 04:24:10 -08:00
<?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();
}