-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpac12_vod.module
40 lines (36 loc) · 1.04 KB
/
pac12_vod.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
<?php
/**
* @file
* Contains pac12_vod.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_theme().
*/
function pac12_vod_theme() {
return [
'pac12_vod' => [
'template' => 'list',
'render element' => 'elements',
],
'pac12_vod_block' => [
'template' => 'list_block',
'render element' => 'elements',
],
];
}
/**
* Implements hook_help().
*/
function pac12_vod_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.pac12_vod':
return t('
<h2>Pac-12 Video On Demand List.</h2>
<h3>Instructions</h3>
<p>This module allows you to add a list of VODs to a page. Additionally, it creates a default listing page at <a href="/vod/list">/vod/list</a>.</p>
<p>To configure the list of VODs returned, visit <a href="/admin/config/services/pac12_vod">/admin/config/services/pac12_vod</a> and enter the number of items returned per page, Sport to return, or enable infinite scrolling.</p>
');
default:
}
}