-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.module
39 lines (37 loc) · 971 Bytes
/
archive.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* @copyright 2017-2019 City of Bloomington, Indiana
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* @implements hook_help()
*/
function archive_help($route_name, RouteMatchInterface $route_match)
{
switch ($route_name) {
case 'help.page.archive':
return "<h2>Google Calendar Help</h2>";
break;
}
}
/**
* @implements hook_theme()
* @see https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!theme.api.php/function/hook_theme/8.2.x
*/
function archive_theme()
{
return [
'archive_results'=> [
'template' => 'archive_results',
'variables' => [
'year' => null,
'month' => null,
'start' => null,
'form' => null,
'type' => null, // Node type
'results' => [],
]
]
];
}