rocket_chat.module in Rocket.Chat 8.2
Same filename and directory in other branches
Rocket.Chat Module for Drupal 8.
Currently supports the following Rocket.chat features/
- Livechat.
For a Rocketchat instance checkout "https://rocket.chat/".
File
rocket_chat.moduleView source
<?php
/**
* @file
* Rocket.Chat Module for Drupal 8.
*
* Currently supports the following Rocket.chat features/
* - Livechat.
*
* For a Rocketchat instance checkout "https://rocket.chat/".
*/
/**
* Copyright (c) 2017.
*
* Authors:
* - Lawri van Buël <sysosmaster@2588960.no-reply.drupal.org>.
*
* This file is part of (rocket_chat) a Drupal 8 Module for Rocket.Chat
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
* @param $route_name
* @param \Drupal\Core\Routing\RouteMatchInterface $route_match
* @return string
*/
function rocket_chat_help($route_name, RouteMatchInterface $route_match) {
if ($route_name === 'rocket_chat.admin_settings') {
$output = '<div class="admin admin_title title rocketchat">';
$output .= '<h4>' . t('Rocket.Chat configuration management.') . '</h4>';
$output .= '<div class="admin rocketchat">';
$output .= t("Here you configure the Rocket chat connection detail.");
$output .= '</div></div>';
return $output;
}
// No help rendered so returning an empty string.
return "";
}
Functions
Name | Description |
---|---|
rocket_chat_help | Implements hook_help(). |