This repository has been archived on 2022-07-12. You can view files and clone it, but cannot push or open issues or pull requests.
opencase/zencrm.module

40 lines
717 B
Plaintext
Raw Normal View History

<?php
/**
* @file
* Contains zencrm.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function zencrm_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the zencrm module.
case 'help.page.zencrm':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Zen CRM') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function zencrm_theme() {
return [
'zencrm' => [
'render element' => 'children',
],
];
}
2018-04-15 08:22:55 +00:00
function zencrm_page_attachments(array &$page) {
$page['#attached']['library'][] = 'zencrm/opencase-lib';
}