hospital_management-8.x-1.x-dev/web/modules/hms/hms_patients/hms_patients.module

web/modules/hms/hms_patients/hms_patients.module
<?php

/**
 * @file
 * Contains hms_patients.module.
 */

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function hms_patients_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    // Main module help for the hms_patients module.
    case 'help.page.hms_patients':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Module for custom functionality for patients') . '</p>';
      return $output;

    default:
  }
}

/**
 * Implements hook_entity_type_build().
 */
function hms_patients_entity_type_build(array &$entity_types) {
	$entity_types['user']->setFormClass('patient', 'Drupal\user\ProfileForm');
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc