Skip to content
Snippets Groups Projects
Commit b204cdf4 authored by Paulo Calado's avatar Paulo Calado
Browse files

Issue #3361486 by pragya.diwan, _pratik_, bharath-kondeti, kallado: Update...

Issue #3361486 by pragya.diwan, _pratik_, bharath-kondeti, kallado: Update README.txt file with README.md
parent f193e7af
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,7 @@
/**
* @file
* Primary module hooks for DOI Publications module.
*
**/
**/
use Drupal\Core\Routing\RouteMatchInterface;
......@@ -13,24 +12,24 @@ use Drupal\Core\Routing\RouteMatchInterface;
*/
function doi_search_theme() {
return [
'doi_search_page' =>[
'variables' =>[
'items' => NULL
'doi_search_page' => [
'variables' => [
'items' => NULL,
],
'template' => 'doi-search-page'
'template' => 'doi-search-page',
],
'doi_search_result' =>[
'variables' =>[
'items' => NULL
'doi_search_result' => [
'variables' => [
'items' => NULL,
],
'template' => 'doi-search-result'
'template' => 'doi-search-result',
],
'doi_search_reference' =>[
'variables' =>[
'items' => NULL
'doi_search_reference' => [
'variables' => [
'items' => NULL,
],
'template' => 'doi-search-reference'
]
'template' => 'doi-search-reference',
],
];
}
......@@ -40,7 +39,7 @@ function doi_search_theme() {
function doi_search_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.doi_search':
$readme = __DIR__ . '/README.txt';
$readme = __DIR__ . '/README.md';
$text = file_get_contents($readme);
$output = '';
......@@ -58,4 +57,4 @@ function doi_search_help($route_name, RouteMatchInterface $route_match) {
}
return $output;
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment