function multiple_registration_help in Multiple Registration 8
Same name and namespace in other branches
- 8.2 multiple_registration.module \multiple_registration_help()
- 7 multiple_registration.module \multiple_registration_help()
- 3.x multiple_registration.module \multiple_registration_help()
Implements hook_help().
File
- ./
multiple_registration.module, line 22 - Contains multiple_registration.module.
Code
function multiple_registration_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the multiple_registration module.
case 'help.page.multiple_registration':
$path = dirname(__FILE__) . '/README.txt';
if (file_exists($path)) {
$readme = file_get_contents($path);
}
if (!isset($readme)) {
return NULL;
}
return '<pre>' . $readme . '</pre>';
}
}