hospital_management-8.x-1.x-dev/web/modules/hms/hms_doctors/hms_doctors.module
web/modules/hms/hms_doctors/hms_doctors.module
<?php
/**
* @file
* Contains hms_doctors.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function hms_doctors_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the hms_doctors module.
case 'help.page.hms_doctors':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Modules for custom functionality for doctors') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_entity_type_build().
*/
function hms_doctors_entity_type_build(array &$entity_types) {
$entity_types['user']->setFormClass('doctor', 'Drupal\user\ProfileForm');
}
