-
Notifications
You must be signed in to change notification settings - Fork 0
/
path_file.module
30 lines (26 loc) · 1.12 KB
/
path_file.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
<?php
/**
* @file
* Contains path file hooks.
*/
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
/**
* Implements hook_help().
*/
function path_file_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.path_file':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Path File module allows users to create, edit, and manage files as entities with configurable urls. This allows admins to upload new versions of the file without changing the url.') . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('User permissions') . '</dt>';
$output .= '<dd>' . t('The Path File module makes a number of permissions available for viewing, editing, and managing Path File entities, which can be set by role on the <a href=":permissions">permissions page</a>.', array(
':permissions' => Url::fromRoute('user.admin_permissions', array(), array('fragment' => 'module-path_file'))->toString(),
)) . '</dd>';
$output .= '</dl>';
return $output;
}
}