-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheisencache.module
44 lines (40 loc) · 969 Bytes
/
heisencache.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
40
41
42
43
44
<?php
/**
* @file
* Heisencache administrative module.
*
* @author: Frederic G. MARAND <fgm@osinet.fr>
*
* @copyright (c) 2013-2014 Ouest Systèmes Informatiques (OSInet).
*
* @license General Public License version 2 or later
*/
/**
* Implements hook_menu().
*
* @return array
*/
function heisencache_menu() {
$items = array();
$items['admin/reports/heisencache'] = array(
'title' => 'Heisencache',
'access arguments' => array('administer site configuration'),
'page callback' => 'heisencache_page_reports',
'file' => 'heisencache.admin.inc',
);
return $items;
}
/**
* Implements hook_views_api().
*/
function heisencache_views_api() {
/** @var \Drupal\Core\Extension\ExtensionPathResolver $er */
$er = \Drupal::service('extension.path.resolver');
$path = $er->getPath('module', 'heisencache');
$ret = array(
'api' => "3",
'path' => "$path/views",
'template path' => "$path/themes",
);
return $ret;
}